积微
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于
2024年1月28日 下午
12 字 1 分钟

解决跨域——运维端nginx

ubuntu

1
2
apt-get nginx
cd etc/nginx/sites-available/default
1
2
3
location /api {
proxy_pass http://server_ip:server_port;
}

computer network > CORS
#computer network #CORS
解决跨域——运维端nginx
https://hugtyftg.github.io/2024/01/28/解决跨域——运维端nginx/
作者
mmy@hugtyftg
发布于
2024年1月28日
许可协议
ajax xml fetch 上一篇
解决跨域——前后端协商jsonp 下一篇

目录

搜索

mmy@hugtyftg ©2024