nginx跨域设置
来源:互联网 发布:最新云豹直播系统源码 编辑:程序博客网 时间:2024/06/17 21:25
server { listen 80; server_name scxm; location / { add_header 'Access-Control-Allow-Origin' '*'; # # Om nom nom cookies # add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; # # Custom headers and headers various browsers *should* be OK with but aren't # add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8088; } }
阅读全文
0 0
- nginx跨域设置
- Nginx跨域设置
- nginx 跨域设置
- nginx跨域设置
- nginx+ajax跨域访问设置
- Spring Boot Nginx axios 跨域设置
- nginx( 设置)
- nginx设置
- 【Nginx】nginx虚拟机设置
- Nginx:设置Nginx作为缓存
- <nginx.conf> nginx设置用户权限
- Nginx 跨域设置 Access-Control-Allow-Origin 无效的解决办法
- Nginx 跨域设置 Access-Control-Allow-Origin 无效的解决办法
- nginx常用设置
- nginx的rewrite设置
- 转nginx设置
- 设置Nginx 404页面
- nginx 的pathinfo设置
- 采用web3.js将数据写入到区块链中
- 函数
- CUDA入门3.2——使用CUDA实现鱼眼转全景图(CUDA环节)
- WPF 窗体样式重写 界面优美
- 内核中断的认识
- nginx跨域设置
- Java Spring MVC入门(七)——Controller等常用注解
- 面向对象程序设计
- error while loading shared libraries:libmoveit_planning_scene_monitor.so.0.9.10
- 使用spring boot搭建与dubbo整合项目
- 设计模式
- 达内课程-DataInputStream/DataOutputStream
- java,html,xml转义字符
- PHP 用fputcsv()生成csv文件在windows Excel 下打开乱码问题解决