{"action":"created","issue":{"url":"https://api.github.com/repos/mac-cain13/xdebug-helper-for-chrome/issues/62","repository_url":"https://api.github.com/repos/mac-cain13/xdebug-helper-for-chrome","labels_url":"https://api.github.com/repos/mac-cain13/xdebug-helper-for-chrome/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/mac-cain13/xdebug-helper-for-chrome/issues/62/comments","events_url":"https://api.github.com/repos/mac-cain13/xdebug-helper-for-chrome/issues/62/events","html_url":"https://github.com/mac-cain13/xdebug-helper-for-chrome/issues/62","id":139964374,"number":62,"title":"Does it work with Single Page Applications?","user":{"login":"morfin","id":1243618,"avatar_url":"https://avatars.githubusercontent.com/u/1243618?v=3","gravatar_id":"","url":"https://api.github.com/users/morfin","html_url":"https://github.com/morfin","followers_url":"https://api.github.com/users/morfin/followers","following_url":"https://api.github.com/users/morfin/following{/other_user}","gists_url":"https://api.github.com/users/morfin/gists{/gist_id}","starred_url":"https://api.github.com/users/morfin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morfin/subscriptions","organizations_url":"https://api.github.com/users/morfin/orgs","repos_url":"https://api.github.com/users/morfin/repos","events_url":"https://api.github.com/users/morfin/events{/privacy}","received_events_url":"https://api.github.com/users/morfin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-10T17:54:46Z","updated_at":"2016-03-28T12:49:25Z","closed_at":null,"body":"Hi,\r\nThis is my setup:\r\n\r\nI have a SPA using AngularJS. This app interacts with an API Server which is located in a different domain. Data interaction is done using CORS mechanism.\r\n\r\nWhen I first load the angular app, Xdebug Helper injects the XDEBUG_SESSION_START into the Cookie set by the SPA. Then I do an AJAX call (CORS) to my API Server app, and that server establish its own Cookie. \r\n\r\nHere comes the problem: Xdebug Helper does not inject the XDEBUG_SESSION_START into this API Server cookie, where I actually need it.\r\n\r\nI wonder if this happens not only when using CORS, but also with SPA's using JWT or OAuth Clients. \r\nSeems that Xdebug Helper only works with websites where frontend/backend reside in the same  domain.\r\n \r\nIt would be nice if Xdebug Helper could inject the XDEBUG key into Cookies set by Cross-domain Ajax requests. \r\n \r\nAny Idea?"},"comment":{"url":"https://api.github.com/repos/mac-cain13/xdebug-helper-for-chrome/issues/comments/202373002","html_url":"https://github.com/mac-cain13/xdebug-helper-for-chrome/issues/62#issuecomment-202373002","issue_url":"https://api.github.com/repos/mac-cain13/xdebug-helper-for-chrome/issues/62","id":202373002,"user":{"login":"mac-cain13","id":618233,"avatar_url":"https://avatars.githubusercontent.com/u/618233?v=3","gravatar_id":"","url":"https://api.github.com/users/mac-cain13","html_url":"https://github.com/mac-cain13","followers_url":"https://api.github.com/users/mac-cain13/followers","following_url":"https://api.github.com/users/mac-cain13/following{/other_user}","gists_url":"https://api.github.com/users/mac-cain13/gists{/gist_id}","starred_url":"https://api.github.com/users/mac-cain13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mac-cain13/subscriptions","organizations_url":"https://api.github.com/users/mac-cain13/orgs","repos_url":"https://api.github.com/users/mac-cain13/repos","events_url":"https://api.github.com/users/mac-cain13/events{/privacy}","received_events_url":"https://api.github.com/users/mac-cain13/received_events","type":"User","site_admin":false},"created_at":"2016-03-28T12:49:25Z","updated_at":"2016-03-28T12:49:25Z","body":"Xdebug \"just\" sets a cookie on the domain of the website that is in the currently open tab. Setting it on another domain is possible, but would give a lot of UI clutter.\r\nIf you know a solution that won't interfere with the simple use case a lot of people have it would be nice.\r\n\r\nJust wondering; Maybe the new 1.5 release that has shipped today will fix our issue. You could try to go to a page on the domain you want to debug, turn debugging on and then work from your page on the other domain. Should probably work."}}