Ngnix 跨域访问
来源:互联网 发布:mac文件放到移动硬盘 编辑:程序博客网 时间:2024/05/01 10:31
Ngnix 跨域访问
添加红色部分即可
server {
listen 80;
server_name www.test.com;
listen 80;
server_name www.test.com;
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers X-Requested-With;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;charset utf-8;
location / {
proxy_set_header Host $host;
proxy_pass http://127.0.0.1:8080;
}
}
0 0
- Ngnix 跨域访问
- ngnix解决跨域访问
- ngnix控制IP访问
- ngnix静态资源访问配置
- ngnix静态资源访问配置
- ngnix
- Ngnix反向代理内外网访问
- ngnix +tomcat 访问很慢解决方法之一
- CentOs+ngnix访问PHP文件时常出现的问题
- ngnix做Https访问设置及依据URL后缀分流访问
- 【ngnix】ngnix源代码分析
- ngnix location
- ngnix安装
- ngnix 配置
- ngnix配置文件
- Ngnix学习
- ngnix fanxiangdaili
- ngnix学习
- javascript事件监听
- House Robber
- Android—debug Unable to add window android.view.View--permission denied for this window type .
- 如何获取 iOS crash log
- The attribute required is undefined for the annotation type XmlElementRef
- Ngnix 跨域访问
- linux firefox 安装 adobe flash
- (6.1.5)文件管理
- hdu 2222
- 9个offer,12家公司,35场面试,从微软到谷歌,应届计算机毕业生的2012求职之路(强烈顶,学习榜样!)
- shell如何在指定文件的指定位置后面添加内容
- Nginx负载均衡策略
- emr+hadoop2.4+spark1.2 class not found com.hadoop.compression.lzo.LzoCodec
- json_encode 中文转换问题