server
server copied to clipboard
Allow etebase server to run on non standard ports
When the nginx is serving pages on a non standard http or https port, an attempt to login at the admin page leads to a 403 error
CSRF verification failed. Request aborted.
With debug = true, the detailed error is
Origin checking failed xxx does not match any trusted origins
The solution is to add the non standard port to the url in CSRF_TRUSTED_ORIGINS in settings.py. To accomplish this, this pull request
- Adds a new section
portsto the exampleetebase-server.iniwhere the user can specify the non standard port(s). - Adds code to
settings.pyto include any non standard port configured as above to theurlsinCSRF_TRUSTED_ORIGINS
Merging this pull request would close Issue 189