Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > SSL CDN Support for MVC Controls
Telerik MVC Extensions are no longer supported (see this page for reference). In case you have inquiries about Kendo UI Complete for ASP.NET MVC, post them in the pertinent Kendo UI forums.

Not answered SSL CDN Support for MVC Controls

Feed from this thread
  • Aaron avatar

    Posted on Aug 13, 2012 (permalink)

    Hi,

    My sites are HTTPS, however are behind a load balancer which terminates the SSL connection, so the Telerik script manager for MVC controls loads the non-SSL CDN endpoint. I can't seem to find a way to force SSL connections for MVC CDN assets.

    I am using the following syntax to register the scripts:

    <%= Html.Telerik()
            .ScriptRegistrar()
            .DefaultGroup(group => group.UseTelerikContentDeliveryNetwork(true))
    %>

    How do I force SSL?

    Thanks,

    Aaron

  • Atanas Korchev Atanas Korchev admin's avatar

    Posted on Aug 16, 2012 (permalink)

    Hello,

     The ScriptRegistrar should manually detect SSL connection by checking the IsSecureConnection property. Can you confirm that the value of this property is correctly set to true at runtime?

    All the best,
    Atanas Korchev
    the Telerik team
    Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.

  • Aaron avatar

    Posted on Aug 17, 2012 (permalink)

    Hi, as I mentioned, the load balancer terminates the SSL connection so the connection to my web server is not secure. The IsSecureConnection property returns false.

    I need a way to force an HTTPS CDN connection.

    Thanks,

    Aaron

  • Atanas Korchev Atanas Korchev admin's avatar

    Posted on Aug 20, 2012 (permalink)

    Hello Aaron,

     This is not currently possible without modifying the source code. You basically need to find all places where IsSecureConnection is used and replace it with true.

    Regards,
    Atanas Korchev
    the Telerik team
    Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.

  • Aaron avatar

    Posted on Aug 20, 2012 (permalink)

    How would I do that? IsSecureConnection is a read only property, there is no setter method. http://msdn.microsoft.com/en-us/library/system.web.httprequest.issecureconnection.aspx

  • Atanas Korchev Atanas Korchev admin's avatar

    Posted on Aug 21, 2012 (permalink)

    Hi Aaron,

     You need to modify the source code of Telerik Extensions for ASP.NET MVC so it does not use the IsSecureConnection property.

    All the best,
    Atanas Korchev
    the Telerik team
    Check out the successor of Telerik MVC Extensions - Kendo UI for ASP.NET MVC - and deem it for new ASP.NET MVC development.

  • Gary Davis avatar

    Posted on Oct 30, 2012 (permalink)

    I just had this issue too. We use an F5 load balancer to handle the SSL so when the websites get the request, it is no longer SSL. Our code can tell it was an SSL request by looking at an HTTP header set by the F5.

    It would be nice to use this flag to tell the Telerik Script/StyleSheet Regestrars to use the SSL domains. We are using MVC extensions.

    For a workaround for now (not requiring rebuilding the source), on the page that uses SSL, I used HttpWatch to see which scripts and css files were being pulled in with http instead of https and created a telerik.js and telerik.css file containing the contents of the files combined. I then added this to the script/stylesheet manager statements (.css shown, similar for .js):

    .DefaultGroup(group => group
       .ContentDeliveryNetworkUrl("~/content/css/telerik.css")

    This is not optimal but will work for now. One other thing, there is a sprite.png that also needs to be in the local project with edits to the .css to reference the png.

    What I would like is to have a new property to allow setting and passing the flag like .DefaultGroup().IsSecureConnection(variable). Of course this would be adding the option to the source code and updates to all references that use the current IsSecureConnection.

    Thanks,
    Gary Davis

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > General Discussions > SSL CDN Support for MVC Controls