对你的站点增加跨域处理

你需要在 <system.werbServer> 层级下面添加以下文本:

1
2
3
4
5
6
7
    <httpProtocol>
      <customHeaders>
        <add name="Access-Control-Allow-Origin" value="*" />
        <add name="Access-Control-Allow-Headers" value="Content-Type" />
        <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
      </customHeaders>
    </httpProtocol>
Built with Hugo
主题 StackJimmy 设计