samesorigin
Samesorigin is a term used in web development to refer to the same origin policy. This security mechanism is a fundamental part of how web browsers protect users from malicious websites. The same origin policy dictates that a web page loaded from a particular origin can only interact with resources from the same origin. An origin is defined by the combination of the protocol (e.g., http, https), domain name (e.g., example.com), and port number (e.g., 80, 443).
If a web page attempts to access data or execute scripts from a different origin, the browser
There are exceptions and workarounds to the same origin policy. For example, JSONP (JSON with Padding) was