{"action":"created","issue":{"url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/690","labels_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/690/labels{/name}","comments_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/690/comments","events_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/690/events","html_url":"https://github.com/BrowserSync/browser-sync/issues/690","id":90475090,"number":690,"title":"Socket.io polling URL based on where loaded JS relative path?","user":{"login":"diagramatics","id":5153378,"avatar_url":"https://avatars.githubusercontent.com/u/5153378?v=3","gravatar_id":"","url":"https://api.github.com/users/diagramatics","html_url":"https://github.com/diagramatics","followers_url":"https://api.github.com/users/diagramatics/followers","following_url":"https://api.github.com/users/diagramatics/following{/other_user}","gists_url":"https://api.github.com/users/diagramatics/gists{/gist_id}","starred_url":"https://api.github.com/users/diagramatics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diagramatics/subscriptions","organizations_url":"https://api.github.com/users/diagramatics/orgs","repos_url":"https://api.github.com/users/diagramatics/repos","events_url":"https://api.github.com/users/diagramatics/events{/privacy}","received_events_url":"https://api.github.com/users/diagramatics/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-23T19:47:00Z","updated_at":"2015-06-26T10:11:55Z","closed_at":null,"body":"Hi. This is a complicated issue, hopefully I'll be able to explain it correctly.\r\n\r\nSo I want to use BrowserSync on a live website where I have no access to the code. I'm not using the proxy so I can still maintain the cookies needed for login and other kinds of things, so I managed to create a Chrome extension to append the needed script tag into the DOM and replacing the `src` to localhost instead of using `.replace()` with the hostname. \r\n\r\nAll goes well, script gets executed, but I noticed the GET requests to socket.io are using the hostname instead. Is there any way to override it somehow? I was expecting the requests to be based on the location where the initial .js file is at."},"comment":{"url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/comments/115627629","html_url":"https://github.com/BrowserSync/browser-sync/issues/690#issuecomment-115627629","issue_url":"https://api.github.com/repos/BrowserSync/browser-sync/issues/690","id":115627629,"user":{"login":"shakyShane","id":1643522,"avatar_url":"https://avatars.githubusercontent.com/u/1643522?v=3","gravatar_id":"","url":"https://api.github.com/users/shakyShane","html_url":"https://github.com/shakyShane","followers_url":"https://api.github.com/users/shakyShane/followers","following_url":"https://api.github.com/users/shakyShane/following{/other_user}","gists_url":"https://api.github.com/users/shakyShane/gists{/gist_id}","starred_url":"https://api.github.com/users/shakyShane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shakyShane/subscriptions","organizations_url":"https://api.github.com/users/shakyShane/orgs","repos_url":"https://api.github.com/users/shakyShane/repos","events_url":"https://api.github.com/users/shakyShane/events{/privacy}","received_events_url":"https://api.github.com/users/shakyShane/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T10:11:55Z","updated_at":"2015-06-26T10:11:55Z","body":"Confirmed this is not working correctly.\r\n\r\nWe'll look at this asap."}}