You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have looked into the code of IncomingRequest and
I see that it verifies that the variable $ _SERVER ['HTTP_X_REQUESTED_WITH'] is equal to xmlhttprequest therefore my test was only valid adding the variable directly
Hi!
I am trying to test by generating a request, my controller is verifying with the
isAJAX()
methodThe problem is that when I put it that way the test fails.
I have looked into the code of
IncomingRequest
andI see that it verifies that the variable
$ _SERVER ['HTTP_X_REQUESTED_WITH']
is equal toxmlhttprequest
therefore my test was only valid adding the variable directlyI think the
setHeader()
function should be enough to configure an ajax request but for some reason it is not succeeding.Thanks for everything!
The text was updated successfully, but these errors were encountered: