misc_pterodactyl-panel/resources/assets/scripts/components/forms/CSRF.ts
2018-12-30 15:31:41 -08:00

11 lines
257 B
TypeScript

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" />`,
});