Nginx. 用http访问https跨域
用http 访问 https域名, 报跨越问题

解决方法:
在nginx相应服务的转发配置下添加:
add_header 'Access-Control-Allow-Origin' 'http://im.tinywan.com'; add_header 'Access-Control-Allow-Headers' 'Origin, X-Requested-With, Content-Type, Accept';
Nginx. 用http访问https跨域用http 访问 https域名, 报跨越问题
解决方法: 在nginx相应服务的转发配置下添加: add_header 'Access-Control-Allow-Origin' 'http://im.tinywan.com'; add_header 'Access-Control-Allow-Headers' 'Origin, X-Requested-With, Content-Type, Accept';
|