{"action":"created","issue":{"url":"https://api.github.com/repos/icflorescu/iisexpress-proxy/issues/7","repository_url":"https://api.github.com/repos/icflorescu/iisexpress-proxy","labels_url":"https://api.github.com/repos/icflorescu/iisexpress-proxy/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/icflorescu/iisexpress-proxy/issues/7/comments","events_url":"https://api.github.com/repos/icflorescu/iisexpress-proxy/issues/7/events","html_url":"https://github.com/icflorescu/iisexpress-proxy/issues/7","id":155648994,"number":7,"title":"Dynamically generated absolute URLs are broken","user":{"login":"mnuzzolilo","id":1613498,"avatar_url":"https://avatars.githubusercontent.com/u/1613498?v=3","gravatar_id":"","url":"https://api.github.com/users/mnuzzolilo","html_url":"https://github.com/mnuzzolilo","followers_url":"https://api.github.com/users/mnuzzolilo/followers","following_url":"https://api.github.com/users/mnuzzolilo/following{/other_user}","gists_url":"https://api.github.com/users/mnuzzolilo/gists{/gist_id}","starred_url":"https://api.github.com/users/mnuzzolilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnuzzolilo/subscriptions","organizations_url":"https://api.github.com/users/mnuzzolilo/orgs","repos_url":"https://api.github.com/users/mnuzzolilo/repos","events_url":"https://api.github.com/users/mnuzzolilo/events{/privacy}","received_events_url":"https://api.github.com/users/mnuzzolilo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-19T03:49:26Z","updated_at":"2016-05-19T03:52:25Z","closed_at":null,"body":"I have a method in my web app that builds absolute URLs (for assets).  Using this proxy causes all links generated by this method to fail (links are referencing the old localhost url instead of the one in the browser).  This would be great otherwise.\r\n\r\n```\r\n        public static string BuildAbsoluteURL(string virtualPath)\r\n        {\r\n            bool https = HttpContext.Current.Request.IsSecureConnection;\r\n            if (!https)\r\n            {\r\n                var xproto = HttpContext.Current.Request.Headers[\"X-FORWARDED-PROTO\"];\r\n                if (xproto != null && xproto.ToLower() == \"https\")\r\n                    https = true;\r\n            }\r\n            var absolutePathTarget = new Uri(\"http://\" + HttpContext.Current.Request.Url.Authority + HttpContext.Current.Request.ApplicationPath.TrimEnd('/') + VirtualPathUtility.ToAbsolute(virtualPath, System.Web.HttpContext.Current.Request.ApplicationPath));\r\n            var url = absolutePathTarget.ToString();\r\n            if (https)\r\n                url = \"https://\" + url.Substring(\"http://\".Length);\r\n            return url;\r\n        }\r\n```"},"comment":{"url":"https://api.github.com/repos/icflorescu/iisexpress-proxy/issues/comments/220221502","html_url":"https://github.com/icflorescu/iisexpress-proxy/issues/7#issuecomment-220221502","issue_url":"https://api.github.com/repos/icflorescu/iisexpress-proxy/issues/7","id":220221502,"user":{"login":"mnuzzolilo","id":1613498,"avatar_url":"https://avatars.githubusercontent.com/u/1613498?v=3","gravatar_id":"","url":"https://api.github.com/users/mnuzzolilo","html_url":"https://github.com/mnuzzolilo","followers_url":"https://api.github.com/users/mnuzzolilo/followers","following_url":"https://api.github.com/users/mnuzzolilo/following{/other_user}","gists_url":"https://api.github.com/users/mnuzzolilo/gists{/gist_id}","starred_url":"https://api.github.com/users/mnuzzolilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnuzzolilo/subscriptions","organizations_url":"https://api.github.com/users/mnuzzolilo/orgs","repos_url":"https://api.github.com/users/mnuzzolilo/repos","events_url":"https://api.github.com/users/mnuzzolilo/events{/privacy}","received_events_url":"https://api.github.com/users/mnuzzolilo/received_events","type":"User","site_admin":false},"created_at":"2016-05-19T03:52:25Z","updated_at":"2016-05-19T03:52:25Z","body":"Perhaps an approach to have a similar proxy in inverse, on the client machine, would fix this?"}}