This request has been blocked; the content must be served over HTTPS.

异常:

zone.js:3324 Mixed Content: The page at 'https://xxxxx.html' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://wx.hechuangcd.com/AbpUserConfiguration/GetAll'.

This request has been blocked; the content must be served over HTTPS.

 原因:

https承载的页面中出现了HTTP请求

解决:

1.在html头加<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

表示自动将http的不安全请求升级为https

2.同一都使用http请求或者都使用https请求

 

posted @ 2021-06-02 11:07  流年sugar  阅读(913)  评论(0编辑  收藏  举报