0

I have a website where I can modify clientside behaviour but can't control ther server respond.

I am trying to detect if one of thoses pages will respond to the client with 200 (inside session) or will redirect them (outside). Is it possible to test the status respond with ajax from a different page? I googled for a solution but didn't find any.

If this is not possible, then I would like a user to visit the page and if it will try to redirect the user, I want some javascript that will detect the redicrection, stop it and instead redirect it myself on some other page instead of leaving it for the server. In this case, how to detect redirection on page in clientside?

Petr
  • 1,853
  • 2
  • 25
  • 49

0 Answers0