Update snippets/global/common-headers.conf

This commit is contained in:
Michael 2024-11-12 20:43:25 -06:00
parent d3fd2fe538
commit 89c19e47dc

View file

@ -18,14 +18,3 @@ add_header 'Access-Control-Allow-Origin' $cors always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization' always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
# Handle preflight OPTIONS requests
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'https://bsky.app' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization' always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Content-Length' 0;
add_header 'Access-Control-Max-Age' 1728000;
return 204;
}