update nginx config

This commit is contained in:
moicen
2022-01-21 03:22:54 +08:00
parent a2ed17047a
commit 9696e18a9f
2 changed files with 5 additions and 10 deletions
-3
View File
@@ -29,9 +29,6 @@ server {
location /api/v1/ts/ {
if ($http_origin !~ [a-z]+\.moicen\.com$) {
return 403;
}
add_header Access-Control-Allow-Origin $http_origin;
add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS';
add_header Access-Control-Allow-Headers 'Authorization,HtyAdminToken,HtySudoerToken,HtyHost,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';