misc_pterodactyl-panel/resources/assets/scripts/components/forms/CSRF.ts

12 lines
257 B
TypeScript
Raw Normal View History

2018-12-30 23:31:41 +00:00
import Vue from 'vue';
export default Vue.component('csrf', {
data: function () {
return {
X_CSRF_TOKEN: window.X_CSRF_TOKEN,
};
},
template: `<input type="hidden" name="_token" v-bind:value="X_CSRF_TOKEN" />`,
});