nginx跨域
2014-04-14 14:31
453 查看
在 conf文件server块里面加上:
add_header 'Access-Control-Allow-Origin' "$http_origin"; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Access-Control-Max-Age' 1728000;
相关文章推荐
- Nginx Gzip模块启用和配置指令详解
- lanmp-nginx源码编译
- Nginx配置文件详细说明
- 配置nginx对php的支持
- windows下配置nginx+php环境
- nginx php-fpm配置
- Nginx 常见应用技术指南(Nginx Tips)
- nginx将9000端口转发映射至 8080
- Nginx 禁止IP访问 只允许域名访问
- Nginx+PHP+mysql
- Nginx ~模块详解~
- 关于Nginx的一些优化(突破十万并发)
- nginx 设置 404页面 ----- 2014 04 13
- nginx + php 在window下的安装
- 服务器部署_linuix下 一台nginx 多域名
- CF Image Host 1.4.2 nginx 伪静态规则
- nginx 编译安装
- nginx - ssl 配置 - globelsign ssl
- installing nginx with php5(and-php-fpm) and mysql support(lemp) on ubuntu 13.04
- nginx 同时静态下载和web服务