/search CSRF token mismatch after migrating to live environment #1006
-
Hello, I recently got my Backpack admin ready to go, but on my live environment, every list page I got to shows a 419 error message that "CSRF token mismatch." and I'm struggling to figure out why. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @cvassios-eibach That error means that the assets are not properly loaded. We add the CSRF token in Is your APP_URL correctly set in your live environment ? does Do you run Does Did you create the symlink with Let me know the results of those. Cheers |
Beta Was this translation helpful? Give feedback.
Hey @cvassios-eibach
That error means that the assets are not properly loaded. We add the CSRF token in
common.js
if you look at your Developer Console in network tab, you should see those files with error.Is your APP_URL correctly set in your live environment ?
does
php artisan basset:check
return all good ?Do you run
php artisan optimize:clear
before thephp artisan optimize
?Does
php artisan basset:clear && php artisan basset:cache
create the expected files in thestorage/app/public/basset
folder ?Did you create the symlink with
php artisan storage:link
?Let me know the results of those.
Cheers