Q
Q
Quber2015-04-10 10:28:58
JavaScript
Quber, 2015-04-10 10:28:58

Why doesn't xDebug work on a cross-domain ajax request?

There is a website site.ru, which is running openserver 5.2.2 . There is xDebug
installed and configured . I set a breakpoint, make an ajax request from site.ru to api.site.ru and xDebug does not work, although it passes the parameters in the header (X-Debug-Token, X-Debug-Token-Link). To run xDebug I use https://www.jetbrains.com/phpstorm/marklets/ I also tried https://chrome.google.com/webstore/detail/xdebug-h... Within the site.ru domain, xDebug works successfully. What is the problem and how to solve it? I'm using phpstorm 8.02. Thanks.







Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2015-04-10
@Quber

Put the cookie XDEBUG_SESSION=1 on the required domains.
Make sure the mapping in the storm is properly configured.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question