{"action":"closed","number":41,"pull_request":{"url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pulls/41","id":181638745,"html_url":"https://github.com/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pull/41","diff_url":"https://github.com/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pull/41.diff","patch_url":"https://github.com/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pull/41.patch","issue_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/issues/41","number":41,"state":"closed","locked":false,"title":"Ensure https-only headers should also be send when behind a proxy/load balancer which handles the https, but forwards the request as http","user":{"login":"logophobia","id":41363,"avatar_url":"https://avatars0.githubusercontent.com/u/41363?v=4","gravatar_id":"","url":"https://api.github.com/users/logophobia","html_url":"https://github.com/logophobia","followers_url":"https://api.github.com/users/logophobia/followers","following_url":"https://api.github.com/users/logophobia/following{/other_user}","gists_url":"https://api.github.com/users/logophobia/gists{/gist_id}","starred_url":"https://api.github.com/users/logophobia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logophobia/subscriptions","organizations_url":"https://api.github.com/users/logophobia/orgs","repos_url":"https://api.github.com/users/logophobia/repos","events_url":"https://api.github.com/users/logophobia/events{/privacy}","received_events_url":"https://api.github.com/users/logophobia/received_events","type":"User","site_admin":false},"body":"Ensure https-only headers are also sent when the application is behind a proxy/load balancer which handles the SSL. Some of these proxies don't have configurable headers. This setup is rather common.\r\n\r\nIt's possible to detect if you're behind a proxy through a number of http headers:\r\n\r\nhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto\r\n\r\nI included unit tests.","created_at":"2018-04-14T09:10:05Z","updated_at":"2018-04-16T07:47:17Z","closed_at":"2018-04-16T07:47:17Z","merged_at":null,"merge_commit_sha":"7db01a57771a3264a85665104e8c374ca925a390","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pulls/41/commits","review_comments_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pulls/41/comments","review_comment_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/issues/41/comments","statuses_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/statuses/2c887031f57384be57a01755cab6ce12295dfeba","head":{"label":"logophobia:support-forwarded","ref":"support-forwarded","sha":"2c887031f57384be57a01755cab6ce12295dfeba","user":{"login":"logophobia","id":41363,"avatar_url":"https://avatars0.githubusercontent.com/u/41363?v=4","gravatar_id":"","url":"https://api.github.com/users/logophobia","html_url":"https://github.com/logophobia","followers_url":"https://api.github.com/users/logophobia/followers","following_url":"https://api.github.com/users/logophobia/following{/other_user}","gists_url":"https://api.github.com/users/logophobia/gists{/gist_id}","starred_url":"https://api.github.com/users/logophobia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logophobia/subscriptions","organizations_url":"https://api.github.com/users/logophobia/orgs","repos_url":"https://api.github.com/users/logophobia/repos","events_url":"https://api.github.com/users/logophobia/events{/privacy}","received_events_url":"https://api.github.com/users/logophobia/received_events","type":"User","site_admin":false},"repo":{"id":128880321,"name":"NetEscapades.AspNetCore.SecurityHeaders","full_name":"logophobia/NetEscapades.AspNetCore.SecurityHeaders","owner":{"login":"logophobia","id":41363,"avatar_url":"https://avatars0.githubusercontent.com/u/41363?v=4","gravatar_id":"","url":"https://api.github.com/users/logophobia","html_url":"https://github.com/logophobia","followers_url":"https://api.github.com/users/logophobia/followers","following_url":"https://api.github.com/users/logophobia/following{/other_user}","gists_url":"https://api.github.com/users/logophobia/gists{/gist_id}","starred_url":"https://api.github.com/users/logophobia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/logophobia/subscriptions","organizations_url":"https://api.github.com/users/logophobia/orgs","repos_url":"https://api.github.com/users/logophobia/repos","events_url":"https://api.github.com/users/logophobia/events{/privacy}","received_events_url":"https://api.github.com/users/logophobia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/logophobia/NetEscapades.AspNetCore.SecurityHeaders","description":"Small package to allow adding security headers to ASP.NET Core websites","fork":true,"url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders","forks_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/forks","keys_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/teams","hooks_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/hooks","issue_events_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/issues/events{/number}","events_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/events","assignees_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/assignees{/user}","branches_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/branches{/branch}","tags_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/tags","blobs_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/git/refs{/sha}","trees_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/statuses/{sha}","languages_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/languages","stargazers_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/stargazers","contributors_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/contributors","subscribers_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/subscribers","subscription_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/subscription","commits_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/commits{/sha}","git_commits_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/git/commits{/sha}","comments_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/comments{/number}","issue_comment_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/issues/comments{/number}","contents_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/contents/{+path}","compare_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/merges","archive_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/downloads","issues_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/issues{/number}","pulls_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/pulls{/number}","milestones_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/milestones{/number}","notifications_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/labels{/name}","releases_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/releases{/id}","deployments_url":"https://api.github.com/repos/logophobia/NetEscapades.AspNetCore.SecurityHeaders/deployments","created_at":"2018-04-10T05:49:50Z","updated_at":"2018-04-10T05:49:52Z","pushed_at":"2018-04-14T09:01:44Z","git_url":"git://github.com/logophobia/NetEscapades.AspNetCore.SecurityHeaders.git","ssh_url":"git@github.com:logophobia/NetEscapades.AspNetCore.SecurityHeaders.git","clone_url":"https://github.com/logophobia/NetEscapades.AspNetCore.SecurityHeaders.git","svn_url":"https://github.com/logophobia/NetEscapades.AspNetCore.SecurityHeaders","homepage":"","size":124,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"andrewlock:master","ref":"master","sha":"06613d20ae6753412de6d725429496c8295ecffb","user":{"login":"andrewlock","id":18755388,"avatar_url":"https://avatars1.githubusercontent.com/u/18755388?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewlock","html_url":"https://github.com/andrewlock","followers_url":"https://api.github.com/users/andrewlock/followers","following_url":"https://api.github.com/users/andrewlock/following{/other_user}","gists_url":"https://api.github.com/users/andrewlock/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewlock/subscriptions","organizations_url":"https://api.github.com/users/andrewlock/orgs","repos_url":"https://api.github.com/users/andrewlock/repos","events_url":"https://api.github.com/users/andrewlock/events{/privacy}","received_events_url":"https://api.github.com/users/andrewlock/received_events","type":"User","site_admin":false},"repo":{"id":59352868,"name":"NetEscapades.AspNetCore.SecurityHeaders","full_name":"andrewlock/NetEscapades.AspNetCore.SecurityHeaders","owner":{"login":"andrewlock","id":18755388,"avatar_url":"https://avatars1.githubusercontent.com/u/18755388?v=4","gravatar_id":"","url":"https://api.github.com/users/andrewlock","html_url":"https://github.com/andrewlock","followers_url":"https://api.github.com/users/andrewlock/followers","following_url":"https://api.github.com/users/andrewlock/following{/other_user}","gists_url":"https://api.github.com/users/andrewlock/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewlock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewlock/subscriptions","organizations_url":"https://api.github.com/users/andrewlock/orgs","repos_url":"https://api.github.com/users/andrewlock/repos","events_url":"https://api.github.com/users/andrewlock/events{/privacy}","received_events_url":"https://api.github.com/users/andrewlock/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andrewlock/NetEscapades.AspNetCore.SecurityHeaders","description":"Small package to allow adding security headers to ASP.NET Core websites","fork":false,"url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders","forks_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/forks","keys_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/teams","hooks_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/hooks","issue_events_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/issues/events{/number}","events_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/events","assignees_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/assignees{/user}","branches_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/branches{/branch}","tags_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/tags","blobs_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/git/refs{/sha}","trees_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/statuses/{sha}","languages_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/languages","stargazers_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/stargazers","contributors_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/contributors","subscribers_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/subscribers","subscription_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/subscription","commits_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/commits{/sha}","git_commits_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/git/commits{/sha}","comments_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/comments{/number}","issue_comment_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/issues/comments{/number}","contents_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/contents/{+path}","compare_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/merges","archive_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/downloads","issues_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/issues{/number}","pulls_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pulls{/number}","milestones_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/milestones{/number}","notifications_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/labels{/name}","releases_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/releases{/id}","deployments_url":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/deployments","created_at":"2016-05-21T09:48:56Z","updated_at":"2018-04-05T19:17:39Z","pushed_at":"2018-04-14T09:10:06Z","git_url":"git://github.com/andrewlock/NetEscapades.AspNetCore.SecurityHeaders.git","ssh_url":"git@github.com:andrewlock/NetEscapades.AspNetCore.SecurityHeaders.git","clone_url":"https://github.com/andrewlock/NetEscapades.AspNetCore.SecurityHeaders.git","svn_url":"https://github.com/andrewlock/NetEscapades.AspNetCore.SecurityHeaders","homepage":"","size":123,"stargazers_count":46,"watchers_count":46,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":14,"open_issues":7,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pulls/41"},"html":{"href":"https://github.com/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pull/41"},"issue":{"href":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/issues/41"},"comments":{"href":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/andrewlock/NetEscapades.AspNetCore.SecurityHeaders/statuses/2c887031f57384be57a01755cab6ce12295dfeba"}},"author_association":"NONE","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":62,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"logophobia"}}