Origin checking failed - null does not match any trusted origins. #1670
-
Current BehaviorWhen trying to login i get the error message: After checking i saw that my Browser also sends the header Origin as null. I'm running Netbox behind a reverse proxy (traefik). But i tried setting different settings and none worked: Expected BehaviorI want to log in... Docker Compose VersionDocker Compose version v2.39.4 Docker VersionThe git RevisionThe git StatusStartup Commanddocker compose up -d NetBox LogsContent of docker-compose.override.ymlservices:
netbox:
expose:
- "8080"
environment:
DEBUG: "true"
TIME_ZONE: "Europe/Berlin"
labels:
- traefik.enable=true
- traefik.http.routers.netbox.entrypoints=websecure
- traefik.http.routers.netbox.rule=Host(`mydomain`)
- traefik.http.routers.netbox.service=netbox
- traefik.http.services.netbox.loadbalancer.server.port=8080
- "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.netbox.middlewares=sslheader"
networks:
- default
- traefik
networks:
traefik:
external: true |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
For anyone who is having the same problem: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy |
Beta Was this translation helpful? Give feedback.
For anyone who is having the same problem:
For me the solution was neither of the things i mentioned.
But i followed the OWASP recommandations for setting my headers and had the Referrer-Policy set to
no-referrerwhich breaks netbox.To fix it i have set the Referrer-Policy to
strict-origin-when-cross-originbut maybesame-originwould be better.https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Referrer-Policy