该页面是通过HTTPS加载的,但请求了一个不安全的XMLHttpRequest端点 [英] The page was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint

查看:1245
本文介绍了该页面是通过HTTPS加载的,但请求了一个不安全的XMLHttpRequest端点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从 Https 部署应用程序
Http Rest API调用了一个rest API。
我已经使用Angular Js框架在JavaScript中编写了逻辑。
网络服务电话失败并显示以下消息。

I am calling a rest API from Https deployed Application to Http Rest API. I have written the logic in JavaScript by using Angular Js framework. The web service call got failed with the below message.

https:// ******** someurl ***页面*'是通过HTTPS加载的,但是请求了一个不安全的XMLHttpRequest端点

The page at 'https://********someurl****' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint

请求是否有任何人可以帮助我摆脱这个错误。

Requesting if any one can help me get out of this error.

推荐答案

解决方法:

1-点击地址栏最右侧的盾牌图标。

1- Click the shield icon in the far right of the address bar.

允许在Google Chrome中添加混合内容

Allow mixed content in Google Chrome

2-在弹出窗口中,单击仍然加载或加载不安全的脚本。

2- In the pop-up window, click "Load anyway" or "Load unsafe script".

如果你想要将您的Chrome浏览器设置为ALWAYS(在所有网页中)允许混合内容:

If you want to set your Chrome browser to ALWAYS(in all webpages) allow mixed content:

1-关闭Chrome。在下一步骤之前,Chrome必须完全关闭。

1- Close Chrome. Chrome must be fully closed before the next steps.

2-右键单击Google Chrome桌面图标(或开始菜单链接)。选择属性。

2- Right-click the Google Chrome desktop icon (or Start Menu link). Select Properties.

3-在目标字段的现有信息的末尾添加: - allow-running-insecure-content(有空格在第一个破折号之前。)

3- At the end of the existing information in the Target field, add: " --allow-running-insecure-content" (There is a space before the first dash.)

4-点击确定。

5-打开Chrome并尝试启动之前被阻止的内容。它现在应该可以工作。

5- Open Chrome and try to launch the content that was blocked earlier. It should work now.

这只是解决方法,您需要通过保护app和rest api来解决。

这篇关于该页面是通过HTTPS加载的,但请求了一个不安全的XMLHttpRequest端点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆