Error 419 issue

BroadbandWireless

New Member
Apr 5, 2025
10
1
3
52
Hello everyone,
I am facing the 419 error when trying to log in.
I have edited the .env file as per https://www.fspbx.com/docs/troubleshooting/error-419/

It is currently configured as follows:

APP_URL=https://subdomain.domain.co.za
SESSION_DOMAIN=.domain.co.za
SANCTUM_STATEFUL_DOMAINS=subdomain.domain.co.za

I am able to log in to the console if I browse tot he IP address.
I am not able to log in when I browse to the hostname?

What am I missing?

Regards,
Leslie
 
Okay, here are a few things you can try: Generate a Let's Encrypt certificate for the domain you want to use or apply your own certificate.


Try an incognito window or a different browser to see if a browser cache is causing the issue.
 
It is almost like it is not reading the .env file as my email settings are also not working
4.0K -rw-r--r-- 1 www-data www-data 3.3K Oct 21 12:16 .env
 
Reach out to support for a remote session if you get stuck. The nginx config was wrong, but if you had corrected it, everything would have been good.
FYI, Nginx needs to be reloaded sometimes, not just restarted.