Hello! 欢迎来到盒子萌!

nginx 跨域设置


location ~* \.(txt|php)$ {
       add_header Access-Control-Allow-Origin *;
       add_header "Access-Control-Allow-Methods" "GET, POST, OPTIONS, HEAD";
      add_header "Access-Control-Allow-Headers" "Authorization, Origin, X-Requested-With, Content-Type, Accept";
        }

暂无评论

发表评论

相关阅读