I have a problem with uwsgi and the CSRF verification. I have set up the domain in my settings.py
like:
CSRF_TRUSTED_ORIGINS=['https://example.com']
and this also works with python manage.py runserver
, but when I use uwsgi I get the error message:
Reason given for failure:
Referer checking failed - https://example.com/ does not match any trusted origins.
It is actually complaining about the exact domain that I have setup in the CSRF_TRUSTED_ORIGINS
list, how can that be? And why does it work with the django runserver?