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

17 lines
338 B
Vue
Raw Normal View History

2019-02-10 05:14:58 +00:00
<template>
2019-02-10 05:15:45 +00:00
<input type="hidden" name="_token" v-bind:value="X_CSRF_TOKEN"/>
2019-02-10 05:14:58 +00:00
</template>
<script lang="ts">
import Vue from 'vue';
export default Vue.extend({
name: 'CSRF',
data: function () {
return {
X_CSRF_TOKEN: window.X_CSRF_TOKEN,
};
},
});
</script>