allowsameorigin
allowsameorigin, commonly referred to as allow-same-origin, is a token used in the HTML5 sandbox attribute. When included, it causes the sandboxed document to be treated as if it originates from the same origin as the embedding document, rather than being assigned a unique origin by the sandbox. Without this token, a sandboxed page behaves as a unique-origin document, which restricts many cross-origin interactions.
The token affects how the sandboxed content interacts with storage and scripting. With allow-same-origin, the embedded
Security and usage considerations are important. Allow-same-origin increases the surface for data leakage and cross-context interaction,
Example: <iframe src="example.html" sandbox="allow-scripts allow-same-origin"></iframe>
Support for sandbox tokens, including allow-same-origin, is provided by modern browsers, with behavior consistent with current