Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

213
Vistas
Intercepting Fetch in javascript

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.

enter image description here

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda