-
I am running changedetection.io in my homelab Docker environment, and both it and many other services are running behind an nginx reverse proxy running on the same host. I have followed the instructions in the wiki (cf. Running changedetection.io behind a reverse proxy ), but whenever I try to make any changes (e.g. adding a new watch, changing settings), I get a 400 Bad Request error, telling me that "The referrer header is missing". Tweaking the various headers in the nginx config (e.g. setting I have set Hoping someone reading this might have some more suggestions. Full (redacted) nginx site config below:
I had a suspicion that it may be a problem with IPv6, as attempting to connect directly to port 5000 on the server fails unless I force the hostname to only resolve to the IPv4 address. Also, everything works as expected when bypassing the nginx proxy, so I am fairly certain that is the culprit here. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 2 replies
-
Also seeing this issue, but no IPv6 in my stack. docker-compose:
.docker.env
nginx
|
Beta Was this translation helpful? Give feedback.
-
@mlabuhn I figured it out, modify your config similarly. I changed my
and I changed |
Beta Was this translation helpful? Give feedback.
-
Thanks @th0mcat , that did the trick! With hindsight, I can't believe I didn't think to change |
Beta Was this translation helpful? Give feedback.
-
i have same problem but after login to main page (after password entered) - > 400 Bad Request behind nginx reverse proxy is anyway to have HIDE_REFERER= true without problems ? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
For me this was fixed by setting the HTTP header Referrer-Policy to "same-origin" |
Beta Was this translation helpful? Give feedback.
@mlabuhn I figured it out, modify your config similarly. I changed my
location
stanza to:and I changed
HIDE_REFERER
in my environment variables to "false"