add headers on .well-known for CORS access

This commit is contained in:
tengel 2024-10-10 11:46:46 -05:00
parent ae09cd9d47
commit 23fefae3b2

View file

@ -6,6 +6,13 @@ server {
root /var/xyzzy/html/plugh;
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 / {
try_files $uri $uri/ =404;
}
@ -42,6 +49,9 @@ server {
location ~ /\.well-known {
allow all;
# Needed for CORS
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET' always;
}
location ~ / {