mirror of
https://github.com/RGBCube/ncc
synced 2025-07-27 10:07:44 +00:00
nginx: fix CORS
This commit is contained in:
parent
65301620ce
commit
f14c7ccbb3
1 changed files with 2 additions and 2 deletions
|
@ -64,11 +64,11 @@ in {
|
||||||
}
|
}
|
||||||
|
|
||||||
map $http_origin $allow_origin {
|
map $http_origin $allow_origin {
|
||||||
~^https://.+\.${domain}$ $http_origin;
|
~^https://(?:.+\.)?${domain}$ $http_origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
map $http_origin $allow_methods {
|
map $http_origin $allow_methods {
|
||||||
~^https://.+\.${domain}$ "CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE";
|
~^https://(?:.+\.)?${domain}$ "CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, PUT, TRACE";
|
||||||
}
|
}
|
||||||
|
|
||||||
${config.services.nginx.headers}
|
${config.services.nginx.headers}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue