summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/x-frame-options/redirect.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/x-frame-options/redirect.html')
-rw-r--r--testing/web-platform/tests/x-frame-options/redirect.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/x-frame-options/redirect.html b/testing/web-platform/tests/x-frame-options/redirect.html
new file mode 100644
index 0000000000..65fd0d5dd1
--- /dev/null
+++ b/testing/web-platform/tests/x-frame-options/redirect.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>X-Frame-Options headers sent along with a redirect</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="support/helper.sub.js"></script>
+
+<body>
+<script>
+"use strict";
+
+xfo_test({
+ url: `./support/redirect.py?value=DENY&url=/x-frame-options/support/xfo.py%3Fvalue%3DALLOWALL`,
+ check: "loaded message",
+ message: `XFO on redirect responses is ignored`
+});
+</script>