summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/speculation-rules/prerender/resources/csp-script-src-strict-dynamic.html
blob: 00db373c47a4df58b7df5c7c53a427885f82c48c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!DOCTYPE html>

<head>
  <meta http-equiv="Content-Security-Policy"
    content="script-src 'nonce-1' 'nonce-2' 'nonce-3' 'nonce-4' 'nonce-5' 'strict-dynamic'">
</head>
<script src="/common/utils.js" nonce="1"></script>
<script src="/resources/testharness.js" nonce="2"></script>
<script src="/resources/testharnessreport.js" nonce="3"></script>
<script src="utils.js" nonce="4"></script>
<script src="csp-script-src.js" nonce="5"></script>
<script>
  const params = new URLSearchParams(location.search);
  writeValueToServer(params.get('key'), "csp is ignored unexpectedly");
</script>