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

2020-10-14  本文已影响0人  xx_Zero

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:*

上一篇 下一篇

猜你喜欢

热点阅读