Skip to content

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