Add csrf component
This commit is contained in:
parent
598bae7b70
commit
94710934b9
4 changed files with 33 additions and 0 deletions
|
@ -0,0 +1,14 @@
|
|||
<template>
|
||||
<input type="hidden" name="_token" v-bind:value="X_CSRF_TOKEN" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'csrf',
|
||||
data: function () {
|
||||
return {
|
||||
X_CSRF_TOKEN: window.X_CSRF_TOKEN,
|
||||
};
|
||||
},
|
||||
}
|
||||
</script>
|
Reference in a new issue