Where is the same origin policy in javascript implemented?

How do browsers implement policies of the same origin? Can I view the source code for XMLHttpRequestanywhere (where can I see the source v8 / Spidermonkey?) How are javascripts isolated from other scripts on the same page?

+4
source share
1 answer

As far as I know, scripts downloaded from another source are not processed differently locally (except for cookies set / sent in the request / response script). If you try to load important data into a script tag, this will not work because the data is not formatted as a script.

+1

All Articles