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

uniapp开发h5项目,要用到https。但是会报This request has been blocked; the content must be served over HTTPS.错误

img

尝试过的解决方法

网上找了方法在 标签中添加以下代码

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

这样也不行

请问下如何处理这一块呢

不允许从https 向http发请求

这个也用https吧

img

https页面下的资源及ajax请求也需要是https,那个标签的前提是https可以访问,所以要么api接口支持https,要么在https站点下做下proxy代理

兄弟怎么决绝的呀?