summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/x-frame-options/support/redirect.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/x-frame-options/support/redirect.py')
-rw-r--r--testing/web-platform/tests/x-frame-options/support/redirect.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/web-platform/tests/x-frame-options/support/redirect.py b/testing/web-platform/tests/x-frame-options/support/redirect.py
new file mode 100644
index 0000000000..c6459eb871
--- /dev/null
+++ b/testing/web-platform/tests/x-frame-options/support/redirect.py
@@ -0,0 +1,4 @@
+def main(request, response):
+ response.status = 302
+ response.headers.set(b"X-Frame-Options", request.GET.first(b"value"))
+ response.headers.set(b"Location", request.GET.first(b"url"))