I have a fairly simple intranet-admin site on HTTPS.
__The stylesheets still load from HTTP (thus causing an "unsafe content" warning)__
When loading a page that contains both an AutoCompleteExtender and a CalendarExtender, the resulting page contains a reference to the HTTP (not HTTPS) CDN for the following stylesheets
```
<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/act/15.1.1/Content/AjaxControlToolkit/Styles/Backgrounds.css">
<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/act/15.1.1/Content/AjaxControlToolkit/Styles/Calendar.css">
```
Surely, these should either be using (href="https://ajax.aspnetcdn.com") or the automatic-prefix (href="//ajax.aspnetcdn.com")
Comments: To set a custom CDN for bundles, you can get the AJAX Control Toolkit bundle from __BundleTable__ and change the value of the __CdnPath__ property. This is commonly done in the __Application_Start()__ method in the Global.asax file. void Application_Start(object sender, EventArgs e) { . . . . BundleTable.Bundles.UseCdn = true; // To enable CDN var scripts = BundleTable.Bundles.GetBundleFor("~/Scripts/AjaxControlToolkit/Bundle"); scripts.CdnPath = "https://ajax.aspnetcdn.com/ajax/act/15.1.1/Scripts/AjaxControlToolkit/Bundle.js"; var styles = BundleTable.Bundles.GetBundleFor("~/Content/AjaxControlToolkit/Styles/Bundle"); styles.CdnPath = "https://ajax.aspnetcdn.com/ajax/act/15.1.1/Content/AjaxControlToolkit/Styles/Bundle.css"; }
__The stylesheets still load from HTTP (thus causing an "unsafe content" warning)__
When loading a page that contains both an AutoCompleteExtender and a CalendarExtender, the resulting page contains a reference to the HTTP (not HTTPS) CDN for the following stylesheets
```
<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/act/15.1.1/Content/AjaxControlToolkit/Styles/Backgrounds.css">
<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/act/15.1.1/Content/AjaxControlToolkit/Styles/Calendar.css">
```
Surely, these should either be using (href="https://ajax.aspnetcdn.com") or the automatic-prefix (href="//ajax.aspnetcdn.com")
Comments: To set a custom CDN for bundles, you can get the AJAX Control Toolkit bundle from __BundleTable__ and change the value of the __CdnPath__ property. This is commonly done in the __Application_Start()__ method in the Global.asax file. void Application_Start(object sender, EventArgs e) { . . . . BundleTable.Bundles.UseCdn = true; // To enable CDN var scripts = BundleTable.Bundles.GetBundleFor("~/Scripts/AjaxControlToolkit/Bundle"); scripts.CdnPath = "https://ajax.aspnetcdn.com/ajax/act/15.1.1/Scripts/AjaxControlToolkit/Bundle.js"; var styles = BundleTable.Bundles.GetBundleFor("~/Content/AjaxControlToolkit/Styles/Bundle"); styles.CdnPath = "https://ajax.aspnetcdn.com/ajax/act/15.1.1/Content/AjaxControlToolkit/Styles/Bundle.css"; }