Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow etebase server to run on non standard ports #190

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jrvarma
Copy link
Contributor

@jrvarma jrvarma commented Oct 18, 2024

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

  1. Adds a new section ports to the example etebase-server.ini where the user can specify the non standard port(s).
  2. Adds code to settings.py to include any non standard port configured as above to the urls in CSRF_TRUSTED_ORIGINS

Merging this pull request would close Issue 189

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSRF verification failed. Request aborted.
1 participant