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

CDN not pulling from the right location under SSL

1 Answer 182 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Mary
Top achievements
Rank 1
Mary asked on 07 Feb 2014, 01:57 AM
We have a bit in our master page like
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
CdnSettings-TelerikCdn="Enabled">
   </telerik:RadScriptManager>

As I understand from the documentation, if the site is http, the scripts and skins should be coming from http:....telerikstatic.com
And if the site is SSL/https the scripts and skins should be coming from the https....cloudfront.net url.

Unfortunately this is not what is happening.  When I go to the client's website on their server, view the site under https, and look at the source, I see that things are coming from cloudfront.net as they should.  
However, when I view the same site remotely using https, pieces of the page are missing, and looking at the view source, I see the items are pulling from the telerikstatic.com location instead.  This is a problem in firefox and other browsers set to only deliver secure content when its an SSL site, and causes our site to be non functional.   If I tell firefox yes I want nonsecure content too, then it works fine.  

Does anyone have any idea why the skins and scripts aren't coming from the https...cloudfront url like they should??  I even tried putting a section in the web.config to universally enable the cdn and use the cloudfront url, but it doesn't seem to have any effect.

I'm pulling my hair out, and not a network engineer.  All suggestions will be appreciated.

 

1 Answer, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 11 Feb 2014, 08:14 AM
Hello Mary,

Such behavior could be observed when a proxy server is being used. By default the RadScriptManager relays on the IsSecureConnection property of the request object to decide whether to server the resources from the secured or the standard servers. In order to deal with such a problem the paths to the CDN addresses could be hard codded in the web config file to point to the secured servers. Here is the web config settings for the addresses:
<appSettings>
   <add key="Telerik.ScriptManager.TelerikCdn.BaseUrl" value="https://d2i2wahzwrm1n5.cloudfront.net" />
   <add key="Telerik.ScriptManager.TelerikCdn.BaseSecureUrl" value="https://d2i2wahzwrm1n5.cloudfront.net" />
</appSettings>

In case you are using the RadStyleSheetManager to server the styles the same should be done with the following settings:
<appSettings>
    <add key="Telerik.StyleSheetManager.TelerikCdn.BaseUrl" value="https://d35islomi5rx1v.cloudfront.net " />
    <add key="Telerik.StyleSheetManager.TelerikCdn.BaseSecureUrl" value="https://d35islomi5rx1v.cloudfront.net " />
</appSettings>


Regards,
Dimitar Terziev
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
ScriptManager and StyleSheetManager
Asked by
Mary
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Share this question
or