summaryrefslogtreecommitdiffstats
path: root/dom/base/test/referrer_header.sjs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dom/base/test/referrer_header.sjs6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/base/test/referrer_header.sjs b/dom/base/test/referrer_header.sjs
new file mode 100644
index 0000000000..29c324b8f6
--- /dev/null
+++ b/dom/base/test/referrer_header.sjs
@@ -0,0 +1,6 @@
+function handleRequest(request, response) {
+ response.setHeader("Referrer-Policy", "same-origin");
+ response.write(
+ '<!DOCTYPE HTML><html><body>Loaded</body><script>parent.postMessage(document.referrer, "*");</script></html>'
+ );
+}