CDN not pulling from the right location under SSL

2 posts, 0 answers
  1. Mary
    Mary  avatar
    1 posts
    Member since:
    Dec 2011

    Posted 06 Feb 2014 Link to this post

    We have a bit in our master page like
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"

    As I understand from the documentation, if the site is http, the scripts and skins should be coming from
    And if the site is SSL/https the scripts and skins should be coming from the 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 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 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.


  2. Dimitar Terziev
    Dimitar Terziev avatar
    1266 posts

    Posted 11 Feb 2014 Link to this post

    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:
       <add key="Telerik.ScriptManager.TelerikCdn.BaseUrl" value="" />
       <add key="Telerik.ScriptManager.TelerikCdn.BaseSecureUrl" value="" />

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

    Dimitar Terziev
    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top