commit bf8b3f134fb6b3fee32d3a37b159e3a5408bb01e parent 218f81a44caf6b333ab0b66476c5a383966bd7ff Author: minerva-jupiter <ryouturn@gmail.com> Date: Sat, 13 Dec 2025 20:10:30 +0900 update nginx to add if Diffstat:
| M | nginx.conf | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/nginx.conf b/nginx.conf @@ -15,5 +15,11 @@ 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; + } } }