接口代理nginx配置
location /api/ { proxy_set_header Host api.shenjian.io; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Referer http://api.shenjian.io/; add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, X-Csrf-Token"; add_header Access-Control-Allow-Methods "GET, POST, OPTIONS"; proxy_pass https://api.shenjian.io/; }