This is a migrated thread and some comments may be shown as answers.

secure url for images

1 Answer 56 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Clive Hoggar
Top achievements
Rank 1
Clive Hoggar asked on 03 Dec 2018, 05:24 PM

Hi Guys

Following the big GDPR push I have converted sites to use https via asp.net code EG;

If Not Request.IsSecureConnection Then
Response.Redirect(Request.Url.AbsoluteUri.Replace("http://", "https://"))
End If

Piece of cake!

But images seem to show as insecure content and browsers do not show the desired padlock.

Running the Firefox web console I see that the offending item is the RadRotor image urls which are not shown in https format and thus provoke the insecure/mixed content warnings. I guess this could be fixed by using the full absolute url but then the development version and the public version would be different, which sucks.

There has to be way round this without using absolute urls rather than relative ones (eg ImageUrl="~/images/image1.png")

Suggestions please!

 

Thanks

 

Clive

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Dec 2018, 09:06 AM
Hi Clive,

I would personally go with the absolute urls approach since it works properly.

You may want also to check this idea for the other approach: Redirect http to https in default.aspx.



Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Rotator
Asked by
Clive Hoggar
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or