iis如何解决Access-Control-Allow-Origin跨越问题?
打开IIS,在IIS中左侧点击对应的网站,找到右侧的“HTTP响应标头”点进去,如下图:
我们在右侧右键>添加,分别添加入下两个自定义HTTP响应头:
名称:
Access-Control-Allow-Headers
值:
Content-Type, api_key, Authorization
名称:
Access-Control-Allow-Origin
值:
*
保存即可成功!
相关文章
- Ubuntu Server更新和打补丁
- windows server 2019服务器如何修改administrator用户名为其他的用户名
- windows server 2016如何禁用IIS日志
- windows server 2016如何设置显示我的电脑回收站等图标?
- windows server服务器如何查看TCP连接总数
- windows server 2012无法搜索新更新代码:80244022
- windows server 2016如何设置系统自动更新?
- 腾讯云服务器按流量计费流入流量是否会计算费用扣费?
- putty提示:the server's host key is not cached in the registry. you have no guarantee that the server i
- iis添加svg、woff、woff2字体
文章评论
热门评论
暂无评论


阿里云备案时提示:系统检查:xxx的域名实名认证信息 xxx ,营业执照(个人或企业): xxx 与您填写的备案主...
新版的知乎一打开到处都是推荐LIVE,到处都是付费学习的课程.这也不奇怪,任何一个产品到了一定的程度都会考虑...
