aboutsummaryrefslogtreecommitdiff
path: root/packages/astro/test/fixtures/csp/src/pages/scripts.astro
diff options
context:
space:
mode:
Diffstat (limited to 'packages/astro/test/fixtures/csp/src/pages/scripts.astro')
-rw-r--r--packages/astro/test/fixtures/csp/src/pages/scripts.astro18
1 files changed, 18 insertions, 0 deletions
diff --git a/packages/astro/test/fixtures/csp/src/pages/scripts.astro b/packages/astro/test/fixtures/csp/src/pages/scripts.astro
new file mode 100644
index 000000000..3e90aca55
--- /dev/null
+++ b/packages/astro/test/fixtures/csp/src/pages/scripts.astro
@@ -0,0 +1,18 @@
+---
+Astro.insertScriptResource("https://scripts.cdn.example.com");
+Astro.insertScriptHash('sha256-customHash');
+Astro.insertDirective("default-src 'self'");
+---
+
+<html lang="en">
+<head>
+ <meta charset="utf-8"/>
+ <meta name="viewport" content="width=device-width"/>
+ <title>Scripts</title>
+</head>
+<body>
+<main>
+ <h1>Scripts</h1>
+</main>
+</body>
+</html>