Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

<!doctype html>
<html>
<head>
<title>FetchLater Referrer Header: Same Origin Policy</title>
<meta name='referrer' content='same-origin'>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/utils.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<script src="/fetch/fetch-later/resources/header-referrer-helper.js"></script>
</head>
<body>
<script>
const {
HTTPS_REMOTE_ORIGIN
} = get_host_info();
testReferrerHeader(token(), /*host=*/'', REFERRER_URL);
testReferrerHeader(token(), HTTPS_REMOTE_ORIGIN, /*expectedReferrer=*/'');
</script>
</body>
</html>