Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Mar 2013
    Posts
    55
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Question Why does my iFrame say that I need to enable cookies to view it?

    I have a website's page that displays the following error message when I load it into an iFrame.

    "This site currently requires the use of cookies. Please enable them in your browser and return to this page."

    The website's page will load fine if I paste the exact same URL into my address bar on my browser. This website is not my website and I can not change any content on the website. I am using Internet Explorer 9, and I have cookies enabled.

    Will I be able to load this website into an iFrame?

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    I would suspect that the site doesn't want to be loaded into an iframe and has detected your attempt to do so. I would guess that the message you are getting is bogus.

    That is, there are possibly several conditions the site/page tests for--cookies, loaded into a frame, etc.--and if any one fails it gives a message. And it's simply giving you the wrong message.

    I assume you aren't willing to share the URL, else we could confirm/disprove my guess. But you could debug this, you know. IE's debugger should be able to find the JS code that is causing the message.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • Users who have thanked Old Pedant for this post:

    MrAtoBandMe (03-16-2013)

  • #3
    Senior Coder Logic Ali's Avatar
    Join Date
    Sep 2010
    Location
    London
    Posts
    1,028
    Thanks
    0
    Thanked 207 Times in 202 Posts
    Quote Originally Posted by MrAtoBandMe View Post
    "This site currently requires the use of cookies. Please enable them in your browser and return to this page."

    The website's page will load fine if I paste the exact same URL into my address bar on my browser.
    Perhaps IE9 is treating the iframed document as third-party content and disallowing cookies on that basis.

  • Users who have thanked Logic Ali for this post:

    MrAtoBandMe (03-16-2013)

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    Dunno... I haven't had that problem with IE before, but it might be some Option setting.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #5
    New Coder
    Join Date
    Mar 2013
    Posts
    55
    Thanks
    27
    Thanked 0 Times in 0 Posts

    Thumbs up

    Quote Originally Posted by Logic Ali View Post
    Perhaps IE9 is treating the iframed document as third-party content and disallowing cookies on that basis.
    This is exactly what is was.

    Once I changed my internet privacy settings, the iFrame loaded the page just fine.

    Thanks.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •