Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In computing, the
same origin policy is an important security concept for a number of
browser-side programming languages, such as JavaScript. The policy
permits scripts running on pages originating from the same site to
access each other's methods and properties with no specific
restrictions, but prevents access to most methods and properties across
pages on different sites. This mechanism bears a particular significance
for modern web applications that extensively depend on HTTP cookies to
maintain authenticated user sessions, as servers act based on the HTTP
cookie information to reveal sensitive information or take
state-changing actions. A strict separation between content provided by
unrelated sites must be maintained on client side to prevent the loss of
data confidentiality or integrity.