Closed back-lacking closed 2 months ago
had a strong feeling that it was. might run it in a vm to see what happens.
@youzi-2333 https://tria.ge/240829-d4tgss1hqf/behavioral1 if you wanna see a report from triage. ran this thing in a triage vm
Do not run that file it's a chrome infostealer! It steals your passwords creditcard etc.
Yep
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 useProxy
was previously in the options
of the widget instead of outside of the options. i looked at the documentation more carefully and now it works.
yep, applied the useProxy
option to all the widgets, and it works.
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