Nginx 添加 Cors 跨域配置
add_header Access-Control-Allow-Origin '*'; add_header Access-Control-Allow-Credentials "true"; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers 'token,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,XRequested-With';
本文来自博客园,作者:我就丶是逗比,转载请注明原文链接:https://www.cnblogs.com/lonewolfyx/articles/16298204.html