Viewing File: /htdocs/atito2/vendor/livewire/livewire/js/util/getCsrfToken.js

export function getCsrfToken() {
    const tokenTag = document.head.querySelector('meta[name="csrf-token"]')

    if (tokenTag) {
        return tokenTag.content
    }

    return window.livewire_token ?? undefined
}
Back to Directory File Manager