This commit is contained in:
孙小云 2025-06-28 09:27:03 +08:00
parent 5c0c791a9f
commit 5e1af8ae70
2 changed files with 11 additions and 1 deletions

View File

@ -21,6 +21,14 @@
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
add_header X-Frame-Options ALLOWALL;
add_header 'Access-Control-Allow-Origin' 'https://${BUSINESS_DOMAIN_FULL}' always;
add_header 'Access-Control-Allow-Credentials' 'true' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' 'Content-Type, Authorization, X-Requested-With' always;
location /{
try_files $uri $uri/ @router;
index index.html;

View File

@ -6,4 +6,6 @@ upstream airportService {
server ${AIRPORT_NAME}:9060;
}
upstream businessService {
server ${BUSINESS_NAME}:9260;
}