Jump to content

Weird Safari bug (possibly to do with caching)


Recommended Posts

Hi there,

 

I am creating a login portal to site B from site A and I am running into a rather unique problem. The portal is made with an iframe to site B with a standard user name and password form within it. I then verify the data being sent from site B (as site A cannot verify it) using ajax and if it all checks out ok then the window is redirected to site B with the user logged in.

 

Problem

The problem only happens in Safari, no other browser has the issue. With a completely empty cache of site B the user cannot login properly, instead they are redirected to the homepage of site B. I managed to capture this split second error between response and redirect:

Unsafe JavaScript attempt to access frame with URL http://websiteA.net/ from frame with URL http://www.websiteB.co.uk/?route=rF. Domains, protocols and ports must match.

 

Now this is the weird part

Safari stops caring about that error after the first login attempt and every subsequent attempt afterwards works perfectly. Just like I want it too.

 

I am really confused as to what is happening here. Has anybody run into this error before? Do you know how to solve it?

 

I have tried replicating the error in every other browser and there are no issues. It is just Safari, I have Safari 5.0.4.

 

Thanks for any help,

Joe

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.