diff --git a/nginx/conf.d/default.conf.template b/nginx/conf.d/default.conf.template index 1c1f4ef..6187fb7 100644 --- a/nginx/conf.d/default.conf.template +++ b/nginx/conf.d/default.conf.template @@ -8,7 +8,7 @@ server { # ———————————————— Audio + CORS + Key-Check ———————————————— location ~* \.(opus|flac|ogg|mp3|wav|m4a|aac)$ { - if ($request_method = OPTIONS) { + if ($request_method = 'OPTIONS') { add_header Access-Control-Allow-Origin "*" always; add_header Access-Control-Allow-Methods "GET, HEAD, OPTIONS" always; add_header Access-Control-Allow-Headers "X-API-Key, Content-Type, Keep-Alive, User-Agent, Cache-Control" always;