正在加载···
AI摘要
HunYuan-Lite
  1. 编辑nginx.conf文件

  2. 修改如下代码:

1
2
3
4
5
6
7
location / {<!-- -->
root html;
index index.html index.htm index.php;
add_header 'Access-Control-Allow-Origin' *;
add_header 'Access-Control-Allow-Credentials' 'true';
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
}
  1. 重启nginx:
1
nginx -s reload