简体   繁体   中英

How to view cross domain Javascript requests in Firebug or any other plugin?

How do I view cross-domain JS requests being made in a web page? Either thru Firebug or any other plugin?

For instance, suppose I visit stackoverflow.com, and they included a third party JS file (for instance, Google Analytics) How do I view the requests that are being made as the page is loading? the URLS being called, the parameters sent, the response, etc.

I can do this of course for AJAX requests made in the same domain rather trivially.

Either using the network tab in both

OR

  • In chrome's console tab right click and select "Log XMLHttpRequest".
  • In firefox's inspector "Log request and response bodies".
  • In firefox firebug there is a little down arrow next to "console" in the tab, click that and ensure "Show XMLHttpRequests" is checked.

If there not showing up, they may be being loaded through JSONP calls and therefore are not actual XMLHttpRequests. If that is the case, your best option is using the Network tabs.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM