O'Reilly logo

Programming Social Applications by Jonathan LeBlanc

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Understanding the Same-Origin Policy

The same-origin policy is important to keep in mind when you’re working with client-side scripting languages (such as JavaScript) and it is a core implementation in modern browsers. Its basic premise is that scripts that are running on a site should have access to that site’s properties and methods within reasonable limits, but those same scripts should not have access to properties and methods on other sites.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required