vue-csrf
A Vue.js plugin for getting CSRF-token
Installation
yarn add vue-csrf
or
npm install vue-csrf --save
Usage
Import package
; Vue;
or with options
; Vue;
then you can get csrf-token by next commands
this$csrfToken;VuecsrfToken; this$csrf;Vuecsrf;
Resetting value
Also you can set new value by
this$csrf;Vuecsrf;