APPLICATION
Importance
What is Same-Origin Policy (SOP)?
The SOP is a web browser security mechanism that restricts scripts from one origin from accessing resources from a different origin. While it doesn't directly prevent JavaScript injection, it limits the damage an injected script can cause.