C
C
cyberlog2017-02-07 22:25:19
JavaScript
cyberlog, 2017-02-07 22:25:19

How to intercept the chain of redirects in the debug bar of the browser?

Suppose there is a page in which a couple of dozen js files are connected.
When a certain event (form submission) occurs, a redirect to another page occurs.
How to find out in which script the redirect was initialized?
I think it should be somewhere in the area: "Developer Tools" -> Networks
Can't figure out how to track it down.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2017-02-07
@sHinE

In the developer tools in chrome, in the Network tab, check the Preserve log checkbox - this is so that the list of requested addresses is not cleared during the transition. When you go there will be the address of the first url where the request was sent. Hover over the Initiator column - it will show from which script this request was sent.

T
Tsimur_S, 2017-02-07
@Tsimur_S

In sources -> event listeners breakpoint (where the list of breakpoints is displayed). select load->beforeunload or control->submit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question