当前位置:首页 > Web开发 > 正文

Nginx. 用http访谒https跨域

2024-03-31 Web开发

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

解决要领:

在nginx相应处事的转发配置下添加:

add_header ‘Access-Control-Allow-Origin‘ ‘‘; add_header ‘Access-Control-Allow-Headers‘ ‘Origin, X-Requested-With, Content-Type, Accept‘;

  

Nginx. 用http访谒https跨域

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/31580.html