mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 23:15:49 +03:00
[GH-ISSUE #640] Origin checking failed error #463
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#463
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nathanielread on GitHub (Apr 21, 2022).
Original GitHub issue: https://github.com/healthchecks/healthchecks/issues/640
Receiving this error in the logs:
Running under docker-compose, using traefik as a reverse proxy and keycloak/gatekeeper as SSO. Existing postgres instance not shown below.
Using the REMOTE_USER_HEADER functionality to login, which works.
To get around the error, I had to add this line:
in this file:
./hc/settings.py
And then I added the following env variable to the docker compose below:
CSRF_TRUSTED_ORIGINS
Was there a better way to get around that error?
Also, I added this to the uwsgi.ini to fix issues with SSO redirects:
@cuu508 commented on GitHub (Apr 22, 2022):
I'm not sure if this is the same issue, but seems similar: https://github.com/healthchecks/healthchecks/pull/597
I'd check if Traefik passes X-Forwarded-Proto header to uwsgi.
@nathanielread commented on GitHub (Apr 22, 2022):
Thanks. I'll take a look.
@Spaider commented on GitHub (Mar 2, 2024):
Sorry to bring this up again. I'm using
nginx, setx-forwarded-protoheader correctly (checked bytcpdump) but still see this error. I am using the most recent docker image as is (sha256 is 6579f0bb...).Below is my nginx config:
@Spaider commented on GitHub (Mar 3, 2024):
Please never mind.
The full gentleman set of headers solved the problem: