commit 77f3c79faa25cba87fc4c32c00d15b8004ce4116
parent 2c35c22b6bc1b6febc00659d82ce537332a13fed
Author: minerva-jupiter <ryouturn@gmail.com>
Date: Sat, 13 Dec 2025 20:18:10 +0900
delete if
Diffstat:
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/nginx.conf b/nginx.conf
@@ -15,11 +15,9 @@ server {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
client_max_body_size 50M;
- if ($http_origin = "https://synapse-admin-api.pages.dev") {
- add_header Access-Control-Allow-Origin https://synapse-admin-api.pages.dev;
- add_header Access-Control-Allow-Methods GET, POST, OPTIONS;
- add_header Access-Control-Allow-Headers Content-Type, Authorization;
- add_header Access-Control-Allow-Credentials true;
- }
+ add_header Access-Control-Allow-Origin https://synapse-admin-api.pages.dev;
+ add_header Access-Control-Allow-Methods GET, POST, OPTIONS;
+ add_header Access-Control-Allow-Headers Content-Type, Authorization;
+ add_header Access-Control-Allow-Credentials true;
}
}