Skip to content
Discussion options

You must be logged in to vote

Hello @dylanpatriarchi

Lucky us you decided to share the solution you found, because you should NOT be doing that. 👍

Let me try to help you fix this. I am sure we (Backpack) should be adding the CSFR token on datatables ajax calls automatically for you.

The root cause for your error I think, it's because the assets are not properly loaded. The script that add the CSRF token automatically is located in common.js https://github.com/Laravel-Backpack/CRUD/blob/3ecaeffc603f0080ca4d5f7d108edca23e20b6af/src/resources/assets/js/common.js#L2

I would first run a php artisan basset:check to make sure basset is properly handling your files.

In case it is, I would open the Network Tools and verify if …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@karandatwani92
Comment options

@dylanpatriarchi
Comment options

Answer selected by dylanpatriarchi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants