Skip to content

Commit

Permalink
Merge pull request #126 from ellieschieder/patch-1
Browse files Browse the repository at this point in the history
Update doh.ffmuc.net.conf to add CORS
  • Loading branch information
awlx authored Jul 14, 2023
2 parents fd3715b + 046f13c commit 1113e73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nginx/domains/doh.ffmuc.net.conf
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ server {
proxy_buffering off;
proxy_pass http://$doh_backend/dns-query$is_args$args;
proxy_http_version 1.1;

// Add CORS Header to allow access via JavaScript see: https://github.com/freifunkMUC/ffmuc-salt-public/issues/125
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST' always;
add_header 'Access-Control-Allow-Headers' '*' always;

# proxy_set_header Connection "";
}
location / {
Expand Down

0 comments on commit 1113e73

Please sign in to comment.