summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fetch/api/cors/sandboxed-iframe.html
blob: feb9f1f2e5bd3e2a1d1937103ea13c2fdb32aea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!doctype html>
<html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<iframe sandbox="allow-scripts" src="../resources/sandboxed-iframe.html"></iframe>
<script>
promise_test(async (t) => {
  const message = await new Promise((resolve) => {
    window.addEventListener('message', e => resolve(e.data));
  });
  assert_equals(message, 'PASS');
}, 'CORS with sandboxed iframe');
</script>
</html>