ASP.NET 回发上的 https 警告
我有一个简单的网页,有级联下拉菜单(不是 Ajax)。当我使用常规 http: url 时,代码工作正常,但是当我将其安装在 https: 的安全服务器上时,我会从下拉列表中收到有关回发的警告。警告内容为“安全警告 - 您是否只想查看安全传送的网页内容”?
如何安全地“传送”所有内容?
I have a simple webpage that has cascaded dropdowns (not Ajax). The code works fine when I use the regular http: url however when I install this on a secured server at https: I get a warning on postback from the dropdown. The warning says "Security Warning - Do you want to view only the webpage content that was delivered securely"?
How do I "deliver" all the content securely?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
通过 HTTPS 提供 HTML 文档时,您应该确保所有链接内容(脚本、CSS 文档、图像等)也使用 HTTPS 引用。使用 HTTP 可以,但会导致出现您所询问的警告。
有许多工具可以帮助您查找使用 HTTP 而不是 HTTPS 引用的资源,包括但不限于:
When serving an HTML document over HTTPS, you should make sure all the linked content (scripts, css documents, images, etc) are also referenced using HTTPS. Using HTTP will work, but results in the warning you're asking about.
There are a number of tools that can help you find resources referenced using HTTP instead of HTTPS, including, but not limited to:
此消息意味着某些内容是通过标准 http 协议传递的。您应该检查是否有任何通过完整 url > 引用的内容。 IE http://example.com/myphoto.jpg。
This message means that some content was delivered via the standard http protocol. You should check to see if you have any content which is being referenced with a full url > I.E. http://example.com/myphoto.jpg.
确保所有引用的文件(图像、CSS 和 javascript)均从 https:// 而不是 http:// 加载。
如果检查 Firebug 中的“网络”选项卡,您可以看到页面正在加载的所有内容的列表。
Make sure all your referenced files (images, css and javascript) are loading from https:// and not http://
If check the Net tab in Firebug you can see a list of everything that your page is loading.