20 lines
725 B
Text
20 lines
725 B
Text
# Set a common group of headers
|
|
add_header X-Content-Type-Options nosniff;
|
|
add_header X-XSS-Protection "1; mode=block";
|
|
add_header X-Robots-Tag none;
|
|
add_header Content-Security-Policy "frame-ancestors 'self'";
|
|
add_header X-Frame-Options DENY;
|
|
add_header 'Referrer-Policy' 'strict-origin-when-cross-origin' always;
|
|
|
|
# CORS Permissive
|
|
# Enable CORS for bsky.app
|
|
set $cors "";
|
|
if ($http_origin ~* "https?://(.*)\.bsky\.app") {
|
|
set $cors $http_origin;
|
|
}
|
|
|
|
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;
|