gpt4 book ai didi

.net - 在 IIS 中修改 Access-Control-Allow-Origin header

转载 作者:塔克拉玛干 更新时间:2023-11-01 19:07:47 25 4
gpt4 key购买 nike

有谁知道 IIS 如何或在何处设置此 header ?出于某种原因,从我的站点返回的所有响应都包含“Access-Control-Allow-Origin: *”,我有兴趣删除或修改此 header 的值。IIS 何时何地设置它? (它不是我的代码中的东西)。

谢谢

最佳答案

来自微软technet

  1. Open IIS Manager and navigate to the level you want to manage. For information about opening IIS Manager, see Open IIS Manager (IIS 7). For information about navigating to locations in the UI, see Navigation in IIS Manager (IIS 7).
  2. In Features View, double-click HTTP Response Headers.
  3. On the HTTP Response Headers page, select the header that you want to remove.
  4. In the Actions pane, click Remove and then click Yes.

关于.net - 在 IIS 中修改 Access-Control-Allow-Origin header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28606902/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com