Error: this page contains both secure and nonsecure items

3 posts, 0 answers
  1. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 22 Sep 2011 Link to this post

    I have a https site, use radwindow to open another window on the same https site.

    On the main window I have the below code.

        function Sel_OnClientClose(sender, eventArgs) {
        top.location.href = top.location.href;         
            }
      
      
    <telerik:RadWindowManager ID="radWindowManager" runat="server" IconUrl="/img/radwindowicon.gif" Style="z-index: 7001">
            <Windows>
                <telerik:RadWindow ID="wndSelectAccount" runat="server" Modal="true" KeepInScreenBounds="true" height="450px" Width="700px"   Animation="Fade"
                    AutoSizeBehaviors="Default" ShowContentDuringLoad="true" VisibleStatusbar="false"
                    NavigateUrl="/SelectAccount.aspx" OnClientClose="Sel_OnClientClose" />
                   </Windows>
        </telerik:RadWindowManager>
    Everytime when I close the top rad window, we IE warning message  "contains both secure and nonsecure items... Do you want to display nonsecure item?"
    On the top window, I use alert(location.href) when window load, can see it is https also. Not sure why we got the warning message when both main and top window are https?

    Please help!!

    Thanks!!
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3599 posts

    Posted 23 Sep 2011 Link to this post

    Hello J J,

    This probably stems from the request for the IconUrl, as it is a relative path. The reason for that is not a bug in the RadWindow control, but this is the framework itself - you will get the same output if you set a relative path to any other standard control. Indeed the problem is that the browser does not recognize that the image is coming from a secure location as well, hence the warning.

    Fortunately, there is an easy fix - to set the iconUrl property with the full Url, e.g.: IconUrl="https://mysite/img/radwindowicon.gif"


    Best wishes,
    Marin
    the Telerik team
    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 RadControls for ASP.NET AJAX, subscribe to their blog feed now
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. JJ
    JJ avatar
    147 posts
    Member since:
    May 2010

    Posted 23 Sep 2011 Link to this post

    Thanks. 
Back to Top