Administrator
发布于 2024-01-30 / 3 阅读
0

nginx 处理跨域

nginx 处理跨域

在所需要代理的地址上加上


add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Credentials true;
add_header Access-Control-Allow-Methods GET,POST;