We get the following error when trying to log in or sign up when accessing via https://(subdomain.)domain.tld:
CSRF verification failed. Request aborted.
It could be fixed with:
CSRF_TRUSTED_ORIGINS = ["https://yourdomain.com", "https://www.yourdomain.com"]
Or possibly be fixed for API endpoints with:
CORS_ALLOW_ALL_ORIGINS = True
Just letting you know. In my case, I used with trusted origins, but in this case, each user that clones this repo and tries to put this behind nginx, would have to do the same. It would be best if some kind of other solution was done.
We get the following error when trying to log in or sign up when accessing via
https://(subdomain.)domain.tld:CSRF verification failed. Request aborted.It could be fixed with:
CSRF_TRUSTED_ORIGINS = ["https://yourdomain.com", "https://www.yourdomain.com"]Or possibly be fixed for API endpoints with:
CORS_ALLOW_ALL_ORIGINS = TrueJust letting you know. In my case, I used with trusted origins, but in this case, each user that clones this repo and tries to put this behind nginx, would have to do the same. It would be best if some kind of other solution was done.