add headers on .well-known for CORS access
This commit is contained in:
parent
ae09cd9d47
commit
23fefae3b2
1 changed files with 10 additions and 0 deletions
|
|
@ -6,6 +6,13 @@ server {
|
||||||
root /var/xyzzy/html/plugh;
|
root /var/xyzzy/html/plugh;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|
||||||
|
location ~ /\.well-known {
|
||||||
|
allow all;
|
||||||
|
# Needed for CORS
|
||||||
|
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||||
|
add_header 'Access-Control-Allow-Methods' 'GET' always;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ =404;
|
try_files $uri $uri/ =404;
|
||||||
}
|
}
|
||||||
|
|
@ -42,6 +49,9 @@ server {
|
||||||
|
|
||||||
location ~ /\.well-known {
|
location ~ /\.well-known {
|
||||||
allow all;
|
allow all;
|
||||||
|
# Needed for CORS
|
||||||
|
add_header 'Access-Control-Allow-Origin' '*' always;
|
||||||
|
add_header 'Access-Control-Allow-Methods' 'GET' always;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ / {
|
location ~ / {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue