Same Origin Policy Cross-Origin Communication
suggest changeIntroduction
Browsers use the same-origin policy to stop a script from reading a document or response from another origin. A page can still load a cross-origin image or script. It cannot read that response as data.
Two URLs have the same origin when the scheme, host, and port match. An omitted port is the scheme’s default, so http://example.com and http://example.com:80 are the same origin.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents