Get origin of all network requests

Maybe it’s already been brought before, but would it be possible to list the “origin” of all network requests?
By “origin” here, I mean the actual element, or source of JS that did trigger a request. There is already a “Trace” available for XHR requests, but that doesn’t concern most of the requests, where it would still be very useful to have this info.

My use case is mainly for failed ones, and particularly for ES modules, where the map can grow quite badly and it’s often hard to know in which of the various files there was a typo in the import statement. If the Network tab was showing the list of all the “origins” of each requests, I could just get in which script I made a typo really fast, instead of going back in all the files of the module map and check all the import paths one by one.

1 Like