How to add Access-Control-Allow-Origin header for lighttpd (Pi-Hole) #1020
Unanswered
0x3ronic
asked this question in
Help and Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to get the Pi Hole widget working in Dashy but I am encountering some CORS errors. How do I go about adding the Access-Control-Allow-Origin header for a lighttpd web server? As Pi-Hole is installed on my RPi and uses lighttpd instead of the ones mentioned here (https://dashy.to/docs/management/#setting-headers), I have tried adding the following line (10.10.69.13 being dashy):
setenv.add-response-header = ( "Access-Control-Allow-Origin" => "http://10.10.69.13" )
To the config file:
/etc/lighttpd/lighttpd.conf
After restarting, the errors are not resolved and it actually brings down my pi hole web server. Any ideas?
This is my dashy config:
displayData:
sortBy: default
rows: 1
cols: 1
collapsed: false
hideForGuests: false
items: []
widgets:
useProxy: true
updateInterval: 20
options:
hostname: http://10.10.10.6/admin/index.php
options:
hostname: http://10.10.10.6/admin/index.php
apiKey: REDACTED
Beta Was this translation helpful? Give feedback.
All reactions