diff --git a/nginx/conf.d/default.conf.template b/nginx/conf.d/default.conf.template index 6bac68b..aea6657 100644 --- a/nginx/conf.d/default.conf.template +++ b/nginx/conf.d/default.conf.template @@ -15,7 +15,7 @@ server { location ~* \.(opus|flac|ogg|mp3|wav|m4a|aac)$ { # --------- Preflight direkt per IF --------- - if ($request_method = "OPTIONS") { + if ($request_method = OPTIONS) { add_header Access-Control-Allow-Origin "*"; add_header Access-Control-Allow-Methods "GET, HEAD, OPTIONS"; add_header Access-Control-Allow-Headers "Content-Type,X-API-Key,Keep-Alive,User-Agent,Cache-Control,Content-Type"; @@ -25,7 +25,7 @@ server { } # --- Key-Check (nur GET/HEAD) --- - if ($request_method != "OPTIONS") { + if ($request_method != OPTIONS) { if ($http_x_api_key != "${MEDIA_API_KEY}") { return 401; }