I have routes that returns different contents based on if the request is AJAX or not, so the same path may map to different controller and action depending on the "X-Requested-With" request header. The application indicates this fact with the "Vary:X-Requested-With" response header.
Is there any way of test routes this with MvcRouteTester? Like adding an additional parameter to simulate an AJAX request?
Hi!
I have routes that returns different contents based on if the request is AJAX or not, so the same path may map to different controller and action depending on the "X-Requested-With" request header. The application indicates this fact with the "Vary:X-Requested-With" response header.
Is there any way of test routes this with MvcRouteTester? Like adding an additional parameter to simulate an AJAX request?
Thanks.