Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing requests in a page with overriden native functions #99

Open
Meir017 opened this issue Nov 30, 2022 · 0 comments
Open

Executing requests in a page with overriden native functions #99

Meir017 opened this issue Nov 30, 2022 · 0 comments
Labels
bug Something isn't working tracked Issue is tracked on the team's ADO backlog

Comments

@Meir017
Copy link

Meir017 commented Nov 30, 2022

Consider a webpage that overrides the native fetch function

const originalFetch = fetch;
fetch = async function(...args) {
  if (args[1]) {
    args.headers.append('x-monitoring', 'true');
  }
  return originalFetch(...args);
}

using the network console in such a webpage will go through this code

AB#46933573

@captainbrosset captainbrosset added bug Something isn't working tracked Issue is tracked on the team's ADO backlog labels Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tracked Issue is tracked on the team's ADO backlog
Projects
None yet
Development

No branches or pull requests

2 participants