ansaurus

tags:

  • facebook-connect

views:

22

answers:

1
Q: 

Why i Get this Error : Unsafe JavaScript attempt to access frame with URL

Hi Wonder what the problem is >.<

Unsafe JavaScript attempt to access frame with URL http://forums.mysite.com/interface/facebook/xd_receiver.php#%7B%22id%22%3A0%2C%22sc%22%3A%22http%3A%2F%2Fwww.facebook.com%2Fxd_receiver_v0.4.php%22%2C%22sf%22%3A%22loginStatus%22%2C%22sr%22%3A2%2C%22h%22%3A%22loginServer%22%2C%22sid%22%3A%220.695%22%2C%22t%22%3A0%7D%5B0%2C%22loginStatus%22%2C%22InitLogin%22%2C%7B%22baseDomain%22%3A%22levelupgames.ph%22%2C%22connectState%22%3A2%2C%22perms%22%3Anull%2C%22publicSessionData%22%3Anull%2C%22session%22%3Anull%2C%22settings%22%3A%7B%22inFacebook%22%3Afalse%2C%22locale%22%3A%22en_US%22%7D%7D%2Cfalse%5D from frame with URL http://www.facebook.com/extern/login_status.php?api_key=b920fdb75dcba2cc06f3bf1b6dc22618&amp;extern=2&amp;channel=http%3A%2F%2Fforums.mysite.com%2Finterface%2Ffacebook%2Fxd_receiver.php&amp;locale=en_US. Domains, protocols and ports must match.

A: 

This is a violation of of the browser same-origin policy. With minor exceptions, a frame can not access the DOM of another from a different domain.

Matthew Flaschen  2010-07-28 04:19:20
hi thanks, then why does facebook create such a feature...
Sherwin Valdez  2010-07-28 04:36:08
Your question doesn't really provide any context. Facebook's API can certainly be used without violating the same-origin policy.
Matthew Flaschen  2010-07-28 04:55:42

related questions

How do I login in with facebook connect in a flex application.
Checking for session expiration with Facebook Connect and .Net
IE8 Win7 Facebook Connect Problem
What is the simplest way to add Facebook Connect to a PHP web site?
Facebook Toolkit 2.0 - Error when running it on a server with asp.net 2.0 installed
Can I rely on facebook connect?
Facebook connect
Common interface for different OpenID providers and Facebook
Logout with facebook
Facebook Connect Integration with a site using ASP.NET Membership Provider
Authentication combination OpenID & Facebook
Facebook Connect + restful_authentication
How can I prevent Facebook Connect isUserConnected function from running twice in jQuery?
Facebook connect and third-party cookies?
Facebook Connect Won't Validate
Verify signature Facebook Connect
triggering functions with facebook connect
How to use XFBML.ProfilePic
Facebook Connect application inside iframe not working in IE7
Need help with FB.Connect.showFeedDialog on facebook!
Server side calls, for non connected visitors
Simple Facebook Connect Demo in ASP.NET
Facebook Connect, jQuery UI, and jQuery.noConflict()
Facebook Connect and ASP.NET
What does the new Facebook Connect platform offer over a traditional Facebook App?
The questions, topics and answers come from serverfault.com, stackoverflow.com and superuser.com, and are licensed under the cc-wiki license.
© 2010 Chad Scira / icodeforlove