正在加载···
AI摘要
HunYuan-Lite

站点根目录的配置文件设置

  1. 新建一个txt

  2. 把下面代码写入到文件里

  3. 文件和后缀名改成 web.config

1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
<add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" />
<add name="Access-Control-Allow-Headers" value="AuthToken, Content-Type, Accept, X-Requested-With" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>