从HTTPS域发送非安全的HTTP请求?

时间:2019-01-09 15:35:19

标签: rest ssl https

我有一个静态网页,托管在https域上。我希望它向我的REST API发出fetch()请求。
我期望它会起作用,但是我收到了JavaScript引发的以下错误:

Mixed Content: The page at 'https://example.example.io/example/#/submit' 
was loaded over HTTPS, but requested an insecure resource 
'http://example:3000/logUser'. This request has been blocked;
 the content must be served over HTTPS.
无法从SSL域发送非SSL请求吗?

修改 这个问题不同于标记为重复的问题,因为自2015年以来浏览器的行为已发生变化,您无法以任何方式绕过此警告。

0 个答案:

没有答案
相关问题