Files
chill_notes/实践积累/工作记录/研发/反向代理解决跨域问题.md
2026-04-21 13:00:34 +08:00

477 B
Executable File

listen 1064; server_name 10.10.200.45;

charset koi8-r;

access_log logs/host.access.log main;

location / { root html;

index index.html index.htm;

add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'; proxy_pass http://10.10.200.45:1060; }