summaryrefslogtreecommitdiffstats
path: root/dom/base/test/referrer_header.sjs
blob: 021e6cac4467acf0c4ddf0c1d51fd67eb809fd8c (plain)
1
2
3
4
5
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>');
}