{"action":"created","issue":{"url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/39","labels_url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/39/comments","events_url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/39/events","html_url":"https://github.com/AceMetrix/connect-cas/issues/39","id":117165163,"number":39,"title":"Origin override","user":{"login":"alanclarke","id":640611,"avatar_url":"https://avatars.githubusercontent.com/u/640611?v=3","gravatar_id":"","url":"https://api.github.com/users/alanclarke","html_url":"https://github.com/alanclarke","followers_url":"https://api.github.com/users/alanclarke/followers","following_url":"https://api.github.com/users/alanclarke/following{/other_user}","gists_url":"https://api.github.com/users/alanclarke/gists{/gist_id}","starred_url":"https://api.github.com/users/alanclarke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanclarke/subscriptions","organizations_url":"https://api.github.com/users/alanclarke/orgs","repos_url":"https://api.github.com/users/alanclarke/repos","events_url":"https://api.github.com/users/alanclarke/events{/privacy}","received_events_url":"https://api.github.com/users/alanclarke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-16T16:38:31Z","updated_at":"2015-11-16T17:27:36Z","closed_at":null,"body":"the origin function in util is populated from the request object, however the service itself might be operating behind a load balancer (a common pattern for nodejs apps) and so it would be nice if this behaviour could be overridden to support that use case?"},"comment":{"url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/comments/157108908","html_url":"https://github.com/AceMetrix/connect-cas/issues/39#issuecomment-157108908","issue_url":"https://api.github.com/repos/AceMetrix/connect-cas/issues/39","id":157108908,"user":{"login":"badunk","id":263556,"avatar_url":"https://avatars.githubusercontent.com/u/263556?v=3","gravatar_id":"","url":"https://api.github.com/users/badunk","html_url":"https://github.com/badunk","followers_url":"https://api.github.com/users/badunk/followers","following_url":"https://api.github.com/users/badunk/following{/other_user}","gists_url":"https://api.github.com/users/badunk/gists{/gist_id}","starred_url":"https://api.github.com/users/badunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badunk/subscriptions","organizations_url":"https://api.github.com/users/badunk/orgs","repos_url":"https://api.github.com/users/badunk/repos","events_url":"https://api.github.com/users/badunk/events{/privacy}","received_events_url":"https://api.github.com/users/badunk/received_events","type":"User","site_admin":false},"created_at":"2015-11-16T17:27:36Z","updated_at":"2015-11-16T17:27:36Z","body":"Most proxies should have a setting to turn on those X forwarded headers.\nThe values of those headers are the values of the original request coming\nfrom the client.  If the setting is turned on, req.client would refer to\nthe original request HTTPS I presume in your case\n\nOn Mon, Nov 16, 2015, 9:17 AM Alan Clarke <notifications@github.com> wrote:\n\n> so it gets a bit complicated because our app is sits behind a load\n> balancer but is also a proxy, so it would be ideal if there was a way of\n> doing this while preserving the original request headers\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/AceMetrix/connect-cas/issues/39#issuecomment-157104651>\n> .\n>\n"}}