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

aspnet-scripts.telerikstatic.com using http to include libraries.

2 Answers 157 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
John
Top achievements
Rank 1
John asked on 16 Aug 2020, 08:21 AM

I have tried all the options listed in the documentation and not matter what I do I still get those script insecurely (http), having the browser naturally blocking the action. I have an old aspnet framework 4.5.2 app.

I tried this
<telerik:RadScriptManager
    runat="server"
    ID="RadScriptManager1"
    EnableCdn="true">
</telerik:RadScriptManager>
<telerik:RadStyleSheetManager
    runat="server"
    ID="RadStyleSheetManager1">    
    <CdnSettings TelerikCdn="Enabled" />
</telerik:RadStyleSheetManager>

And this:
<appSettings>    
    <add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />    
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" />
</appSettings>

Am I missing something? Can I somehow force every request to be https?

I’d really appreciate some help in here!

Thanks!

2 Answers, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 17 Aug 2020, 12:11 AM

Furthermore, exactly the same code works in Azure but breaks in AWS:

https://ibb.co/0nfP5Sr

https://ibb.co/mND3z4Z

 

This is where the scripts get included:

<telerik:RadScriptManager ID="scMgr" runat="server" AjaxFrameworkMode="Enabled" CdnSettings-TelerikCdn="Enabled"
CdnSettings-BaseSecureUrl="https://d2i2wahzwrm1n5.cloudfront.net"></telerik:RadScriptManager>

 

Help pleaseeee :)

0
John
Top achievements
Rank 1
answered on 17 Aug 2020, 01:57 AM

Never mind, I managed to fix it.

The problem was running it on AWS, on an EC2 behind a load balancer. The SSL connection would end at LB level, therefore the server is actually running on http.

There solution that worked for me is actually well explained here:

https://docs.telerik.com/devtools/aspnet-ajax/controls/scriptmanager/troubleshooting/cdn

Tags
General Discussions
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Share this question
or