Jump to content

Weird Safari bug (possibly to do with caching)


joe92

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.