首页 > Web开发 > 详细

http升级https的时候,遇到一个问题

时间:2017-09-17 23:19:06      阅读:4145      评论:0      收藏:0      [点我收藏+]

问题:

Mixed Content: The page at ‘https://api.xxxx.com/test‘ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://api.xxxx.com/test‘. This request has been blocked; the content must be served over HTTPS.

添加这个:

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

 

参考:

http://thehackernews.com/2015/04/disable-mixed-content-warning.html

http升级https的时候,遇到一个问题

原文:http://www.cnblogs.com/cn-coder/p/7538338.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!