Loading...
location / { root /usr/share/nginx/html/; index index.html index.htm; try_files $uri $uri/ @router; index index.html; } location @router { rewrite...
在使用webpack中配置了代理。秩序在nginx添加反代配置。 add_header 'Access-Control-Allow-Origin' '*'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; location /api { proxy_pass http...