{"action":"created","issue":{"url":"https://api.github.com/repos/whatwg/fetch/issues/89","labels_url":"https://api.github.com/repos/whatwg/fetch/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/fetch/issues/89/comments","events_url":"https://api.github.com/repos/whatwg/fetch/issues/89/events","html_url":"https://github.com/whatwg/fetch/issues/89","id":96701172,"number":89,"title":"Consider allow Service Worker to pass-through the original referrer","user":{"login":"mattto","id":1782098,"avatar_url":"https://avatars.githubusercontent.com/u/1782098?v=3","gravatar_id":"","url":"https://api.github.com/users/mattto","html_url":"https://github.com/mattto","followers_url":"https://api.github.com/users/mattto/followers","following_url":"https://api.github.com/users/mattto/following{/other_user}","gists_url":"https://api.github.com/users/mattto/gists{/gist_id}","starred_url":"https://api.github.com/users/mattto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattto/subscriptions","organizations_url":"https://api.github.com/users/mattto/orgs","repos_url":"https://api.github.com/users/mattto/repos","events_url":"https://api.github.com/users/mattto/events{/privacy}","received_events_url":"https://api.github.com/users/mattto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-23T01:01:53Z","updated_at":"2015-07-27T02:25:20Z","closed_at":null,"body":"Filing a bug as recommended at https://github.com/slightlyoff/ServiceWorker/issues/404#issuecomment-89755099\r\n\r\nSome SW users want to \"pass-through\" the original referrer, e.g., the following code wouldn't override the referrer of the original request: \r\n``onfetch = function(e) { e.respondWith(fetch(e.request)) }``"},"comment":{"url":"https://api.github.com/repos/whatwg/fetch/issues/comments/125064808","html_url":"https://github.com/whatwg/fetch/issues/89#issuecomment-125064808","issue_url":"https://api.github.com/repos/whatwg/fetch/issues/89","id":125064808,"user":{"login":"mattto","id":1782098,"avatar_url":"https://avatars.githubusercontent.com/u/1782098?v=3","gravatar_id":"","url":"https://api.github.com/users/mattto","html_url":"https://github.com/mattto","followers_url":"https://api.github.com/users/mattto/followers","following_url":"https://api.github.com/users/mattto/following{/other_user}","gists_url":"https://api.github.com/users/mattto/gists{/gist_id}","starred_url":"https://api.github.com/users/mattto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattto/subscriptions","organizations_url":"https://api.github.com/users/mattto/orgs","repos_url":"https://api.github.com/users/mattto/repos","events_url":"https://api.github.com/users/mattto/events{/privacy}","received_events_url":"https://api.github.com/users/mattto/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T02:25:20Z","updated_at":"2015-07-27T02:25:20Z","body":"Ah I'm wrong in the previous comment. Looks like \r\n```javascript\r\nonfetch = function(e) { e.respondWith(fetch(e.request)) }\r\n```\r\nshould just pass through the original referrer (based on https://w3c.github.io/webappsec/specs/referrer-policy/#determine-requests-referrer), unless the referrer policy is set to something that disallows that. "}}