To test a quick fix locally, in DevTools, without editing the source file and deploying it to a server, override network responses with local files.
Firefox #
-
Open the Network tool.
-
Find the request which you want to override.
-
Right-click the request and select Set Network Override.
-
Choose a location on your computer to save the response.
The current response to the request is saved to that location.
-
Open the local file in a text editor, make the necessary changes, and save the file.
-
Reload the page.
DevTools now uses the local file, with your modifications, as the response instead of the original server response.
To remove the override, right-click the request again and select Remove Network Override.
Chrome and Edge #
-
Open the Network tool.
-
Find the request which you want to override.
-
Right-click the request and select Override content.
-
In the banner that appears at the top of DevTools, click Select folder
-
Choose a location on your computer to save the response, and click Allow to let DevTools access the folder.
A new folder, matching the website's domain name, is created at that location, and the current response to the request is saved in that folder.
-
Open the local file in a text editor, make the necessary changes, and save the file.
-
Reload the page.
DevTools now uses the local file, with your modifications, as the response instead of the original server response.
To remove the override:
-
Open the Sources tool.
-
In the left pane, click Overrides.
-
To temporarily disable the override, clear the Enable Local Overrides checkbox.
-
To permanently remove the override, click Clear configuration.