diff --git a/snippets/global/common-headers.conf b/snippets/global/common-headers.conf index 1e103d6..6ef0ead 100644 --- a/snippets/global/common-headers.conf +++ b/snippets/global/common-headers.conf @@ -17,15 +17,4 @@ 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; -} \ No newline at end of file +add_header 'Access-Control-Allow-Credentials' 'true' always; \ No newline at end of file