Skip to content

Fixing \"419 Page Expired\" after deploying

Laravel & PHP 0 replies 0 views Started 2 weeks ago

ProticLink

Team

2 weeks ago #1
A 419 error means the CSRF token did not match. The usual causes after a deploy:

- APP_URL does not match the address you open (http vs https, www vs no www).
- SESSION_DOMAIN is set to the wrong domain.
- The storage/framework/sessions folder is not writable (when SESSION_DRIVER=file).
- A cached config from another server — run php artisan optimize:clear then php artisan optimize.

Fix those and sign in again in a fresh browser tab.

Join the discussion — it's free.

Sign in to reply

Are you sure?

Install ProticLink

Open the store from your home screen like an app — faster, full screen, one tap to your library and license keys.

Choose which optional cookies we may use. You can change this at any time from the footer.

Strictly necessarySign-in, security, your cart and checkout. These cannot be switched off. Always on