summaryrefslogtreecommitdiffstats
path: root/dom/security/test/referrer-policy/referrer_header.sjs
blob: 29c324b8f64db1e963c5d6d01cb039b485284947 (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>'
  );
}