【发布时间】:2019-11-05 20:43:31
【问题描述】:
由于此请求已被阻止,因此无法通过我的浏览器获得预期结果;内容必须通过 HTTPS 提供。
我试过添加这个
{% block head %}
{{super()}}
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
{% endblock %}
这对其他人有用
'https://matic.herokuapp.com/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://matic.herokuapp.com/status/9092ba37-591e-4e73-b9e3-0ad9bef26cb1'. This request has been blocked; the content must be served over HTTPS.
【问题讨论】:
-
嘿,....我的问题不够清楚,我的意思是问如何解决混合内容被阻止的问题,因为浏览器阻止了 http url 而不是 https url。但是这个帖子帮了我很多github.com/pallets/flask/issues/1129
标签: python ajax flask-bootstrap