美文网首页
IIS服务器出跨域错误常见基本配置

IIS服务器出跨域错误常见基本配置

作者: xx_Zero | 来源:发表于2020-10-14 10:19 被阅读0次

1、选择网站“功能视图”,双击http响应标头添加如下配置:

Access-Control-Allow-Methods : GET,POST,PUT,DELETE,HEAD,OPTIONS

Access-Control-Allow-Headers : Content-Type,api_key,Authorization,X-Requested-With

Access-Control-Allow-Credentials:true

Access-Control-Allow-Origin:*

相关文章

网友评论

      本文标题:IIS服务器出跨域错误常见基本配置

      本文链接:https://www.haomeiwen.com/subject/oopipktx.html