-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
"Origin checking failed" not fixable by CSRF_TRUSTED_ORIGINS? #7382
Comments
@nmanovic can i work on this issue |
miroai@1c97a44 |
I tried this issue, still I see the error: "CSRF Failed: Origin checking failed - https://my domain url does not match any trusted origins. |
Error message I see after following all the steps and adding my doamin url in the relevant fields |
Problem with CSRFError message I see after following all the steps and adding my doamin url in the relevant fields
SolutionFixed with mounting to container
or in docker-compose.yml for
|
This was pretty frustrating, same issue was raised here #6321 and had an attached PR which was closed I followed this workaround: #6322 (comment) as overriding |
Actions before raising this issue
Steps to Reproduce
a) "Forbidden (403) CSRF verification failed. Request aborted. More information is available with DEBUG=True." in UI, and
b) "DEBG 'uvicorn-1' stderr output: WARNING django.security.csrf: Forbidden (Origin checking failed - https://10.20.0.10 does not match any trusted origins.): /admin/auth/user/add/" in log file
Expected Behavior
Possible Solution
According to:
#6516
#6760
#6362
#6760
doccano/doccano#1820
CSRF_TRUSTED_ORIGINS = [ 'https://10.20.0.10' ].
and/or
SMOKESCREEN_OPTS: "trusted_origins=https://10.20.0.10"
Shouldn't setting "CSRF_TRUSTED_ORIGINS" allow to add trusted domains/IPs to the origin checking whitelist?
Context
[ 0.0.0.0:8080 => 10.10.0.100:443 (Host)] => 10.20.0.100:443 (LAN)
The reverse proxy is terminating SSL, using an institutional certificate
but it looks like this configuration gets never effective?
Environment
CVAT 2.10.1 cloned from Git and implemented exxactly following "Quick installation guide" (https://opencv.github.io/cvat/docs/administration/basics/installation/#quick-installation-guide), except for specifying CHAT_HOST=10.20.0.10. Unfortunately we need to host the application on our inhouse infrastructure due to inhouse policies.
The text was updated successfully, but these errors were encountered: