I can detect every fetch inside my browser thanks to the js code below.
const nativeFetch = window.fetch;
window.fetch = function (...args) {
console.log('Getting some data...');
return nativeFetch.apply(window, args);
}
So every time user navigate inside my app, I can trace what is fetched. Unfortunately it doesn't 'intercept' the last fetch showed on the picture below (in red). I don't know why. Because it fetch from another domain(*) ? Because it was blocked by CORS policy ?
(*) This fetch is from another domain: https://dev-123456.okta.com/oauth2/default/v1/authorize?client_id=12122...
Do you have any idea if this is possible to 'detect' this fetch in javascript ?
With the script showed above, it detect every fetch except this one.