Skip to content

Instantly share code, notes, and snippets.

@psignoret
Last active March 30, 2019 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psignoret/782d7b48d47685dbce4e9cc3433462db to your computer and use it in GitHub Desktop.
Save psignoret/782d7b48d47685dbce4e9cc3433462db to your computer and use it in GitHub Desktop.
CORS for popups demo
<html>
<head>
<style>* { font-family: sans-serif; }</style>
</head>
<body>
<p>You are at https://bl.ocks.org/psignoret/raw/782d7b48d47685dbce4e9cc3433462db/. The page that launched this popup
is on a different domain (demo.psignoret.com), and cannot see anything here because of CORS.</p>
<p>Go to a page under the same domain as the page that opened the popup:
<a href="https://demo.psignoret.com/">https://demo.psignoret.com/spa/popup_test.html</a>
</p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment