What is Same Origin Policy?
Definition of Same Origin Policy
Same Origin Policy is a method to secure information used by web browser Programming Languages like JavaScript and Ajax. It ensures that the information or the script is integrated and confidential. It restricts scripts from being accessed and their interaction with other scripts. The policy ages back to Netscape Navigator 2.0.
Brief Description of Same Origin Policy
The Same origin Policy (SOP) is a security mechanism that is used by website programmers to secure their sensitive information. It also avoids malware and other scripts that enter from a compromised site and interact with other websites that have no security measures and exposed to attackers that may lead to malware infections. It can also be used as a preventive measure for scripts or documents on one origin from being set from the other.