locked
ScriptResource blocked on HTTPS connection RRS feed

  • Question

  • User-1242214802 posted

    Hi All: I have a child web page with some Ajax toolkit items that works fine over HTTP, but if I request the page over HTTPS the controls don't run, and I see errors like:

    Mixed Content: The page at '[link removed]' was loaded over HTTPS, but requested an insecure script '[link removed]/ScriptResource.axd?d=VuXb93bWLgYY3nuh5X…xWzda9WNoHhwFx-FmEsF8ZVDwwNdwxwqUe20_beJwv3LV7bmUeF6F9XZ5qg-1g0&t=23c9c237'. This request has been blocked; the content must be served over HTTPS.

    At the beginning of my content section of the child page I have:

    <ajaxToolkit:ToolkitScriptManager runat="server" ID="sm1" EnablePageMethods="true"></ajaxToolkit:ToolkitScriptManager>

    How can I "force" the scripts to be called over HTTPS?

    Saturday, November 29, 2014 3:47 PM

Answers

  • User-1242214802 posted

    Ah, sorry...I figured it out. I had URLRewrite rule in web.config that was redirecting anything other than my secure pages to HTTP, so it was intercepting the HTTPS requests for the *.axd files and redirecting them to HTTP.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, November 30, 2014 12:36 PM