-
-
Notifications
You must be signed in to change notification settings - Fork 767
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
Pi-Hole component CORS issue #296
Comments
I see that it was part of this PR #258 |
To people coming here running docker versions with the fix for Pi-Hole CORS (docker v2021.09 and later) and running it behind traefik, we can make use of middlewares to fix it. labels:
- traefik.http.routers.pihole.middlewares=pihole-cors
- traefik.http.middlewares.pihole-cors.headers.customresponseheaders.Access-Control-Allow-Credentials=true |
@adyanth 👋 I don't get the Here's a copy pasta from my own Homer dashboard making the call to a PiHole on a subdomain through Authelia and Traefik Request
Response
|
@mcclurec I'm curious as to which version of Pi Hole are you using? |
Can I understand the reason behind including
credentials: true
in ecec695 (corrected implementation in bbe7149)?Since
Access-Control-Allow-Credentials
is not set by Pi-Hole, this fails. Also, there is no need for cookies to be included, since Pi-Hole API does not need any login/auth. Please revert this change (or I can send in a PR) so that we don't impose any such restrictions.CC: @mcclurec
The text was updated successfully, but these errors were encountered: