Commit f869ccd1 authored by tywldx's avatar tywldx

增加跨域允许header

parent 920a8604
......@@ -2,6 +2,10 @@ server {
listen 80;
server_name _;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
location / {
root /home/quant_group/SYSTEM_NAME/dist;
try_files $uri $uri/ /index.html;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment