-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[BUG] issues with getting pihole stat widgets to work #1681
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Why don't you use the proxy? https://dashy.to/docs/widgets/#proxying-requests That normally solves all CORS errors without any middleware or any other setup. |
@CrazyWolf13 i did try but i dont think it worked. I will try again with one of the widgets again in a bit. |
@CrazyWolf13 i think the reason why it didnt work previously was that |
Awesome! Glad you got it working! |
Environment
Self-Hosted (Docker)
System
Debian 12, Docker 27.1.1
Version
3.1.1
Describe the problem
So I'm currently trying to setup the widgets for Pihole in Dashy. I added the widgets in my conf file, provided my API key for all the Pihole widgets, and added the Traefik CORS headers from the Dashy documentation to my Pihole's compose file. Looking at Firefox's dev tools, I see that I'm getting a weird network error and errors about missing CORS headers, despite me adding it to my Pihole Compose file and seeing the cors headers middleware in my Traefik dashboard. Relevant configs and screenshots in next section.
Additional info
the errors in firefox
the network error expanded
the cors headers i added to my piholes compose file.
home.local.inever.cyou
is the url for the dashy instance.the part of my config file containing the pihole widgets
the traefik dashboard
Please tick the boxes
The text was updated successfully, but these errors were encountered: