nginx配置vue的History 模式
location / {
index index.html index.htm;
try_files $uri $uri/ @fallback;
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST.
翻译
2020-05-29 17:23:16 ·
941 阅读 ·
0 评论