I am trying to understand what use cases exist for the use of Same Origin Policy (SOP).
SOP prevents a document or script loaded from one origin to interact with a resource from another origin.
But in what scenarios is this really used? From this answer, if I include scripts from different websites in my webpage, the scripts won't be subject to SOP as they belong to my website's origin. If they try to include other scripts, then those scripts will be subject to SOP (won't be able to access my page's resources: DOM, cookies etc.).
SOP is also used to prevent cross-domain AJAX requests.
Other than the above, is there any other scenario where SOP is applicable ?