简体   繁体   English

asp.net图像处理程序(.ashx)未在SSL(https)上显示图像

[英]asp.net image handler (.ashx) not showing images on SSL (https)

I have image handler working fine on HTTP. 我的图像处理程序在HTTP上工作正常。 But The same page when access using https its not showing up the image. 但是使用https访问时,同一页面没有显示图像。 When check browser console for errors its showing "ERR_INSECURE_RESPONSE". 当检查浏览器控制台是否有错误时,其显示为“ ERR_INSECURE_RESPONSE”。

This usually occurs when you try to load content from http site into https site. 当您尝试将内容从http站点加载到https站点时,通常会发生这种情况。 This results into Mixed-Content error. 这导致混合内容错误。

On http page you can load contents from http or https both but when you are on https site then you can load contents like images or iframe only from https sites. 在http页面上,您可以同时从http或https加载内容,但是当您位于https站点时,则只能从https站点加载图像或iframe之类的内容。

In this case i assume that the site which is sending request is on https but your ashx page is on http site. 在这种情况下,我假设正在发送请求的站点在https上,但是您的ashx页面在http站点上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM