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字体
文章评论
热门评论
暂无评论


安装adobe pdf打印机出现:某些文件无法被创建.请关闭所有正在运行的应用程序,重新启动windows并再次运行此安...
最近注册了一个百家号账号,在审核环节因为公司的名字包含了医美的信息,导致直接就被拒了。如下:您的帐号审...
