Is there a way to modify an HTTP request in Chrome or Firefox? Is there a way to modify an HTTP request in Chrome or Firefox? apache apache

Is there a way to modify an HTTP request in Chrome or Firefox?


This might help in some cases - use fetch command to send another, tampered, request. here's how to do it in Chrome:

  1. open DevTools, tab Network
  2. clear
  3. create your request normally
  4. right click that request and select Copy > Copy as fetch
  5. go to Console tab and paste
  6. tamper the data and hit Enter

steps 1-4steps 5-6


Accepted answer is a bit old and there are many tools/extensions in chrome and Firefox which allows you to modify network requests.

One such example is Requestly. Using Requestly you can do the following tasks:

  1. Redirect network requests.
  2. Block websites or specific requests.
  3. Switch domains using Replace Rule.
  4. Modify Headers
  5. Modify UserAgent Documentation1 Documentation 2
  6. File Library (Host JS, CSS, JSON) and use them in Requestly rules

There are more features but for your specific use case. You can host your js or css on library and redirect to it using Redirect Rule. If you have URL rewriting requirement, then you can use either Redirect or Replace rule.

I won't say Requestly is as powerful as Fiddler or Charles but I'd say that it is pretty close with much simplistic UI.

Disclaimer: I built Requestly!


You can use tweak chrome extension and you'll be able to do exactly that, intercept and modify HTTP requests.