joe92 Posted February 23, 2012 Share Posted February 23, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/257639-weird-safari-bug-possibly-to-do-with-caching/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.