summaryrefslogtreecommitdiffstats
path: root/dom/security/test/referrer-policy/referrer_header.sjs
diff options
context:
space:
mode:
Diffstat (limited to 'dom/security/test/referrer-policy/referrer_header.sjs')
-rw-r--r--dom/security/test/referrer-policy/referrer_header.sjs6
1 files changed, 6 insertions, 0 deletions
diff --git a/dom/security/test/referrer-policy/referrer_header.sjs b/dom/security/test/referrer-policy/referrer_header.sjs
new file mode 100644
index 0000000000..29c324b8f6
--- /dev/null
+++ b/dom/security/test/referrer-policy/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>'
+ );
+}