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

Modifying Access-Control-Allow-Origin header in IIS

有谁知道 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.