Web developers often want to test the local changes directly on production websites — be it for debugging a production bug or for testing local changes before shipping code to production. Tools like Source Maps or Local Overrides don’t often work for this setup. With Requestly, you can map your production endpoints to local endpoints on your machine in less than a minute.
Use Requestly to switch production API endpoint to local
- Install the Requestly browser extension and click on New Rule in the Top-Right.
- Next, Select the Replace String Rule from the list of rules. This should navigate you to the rule editor.
- Define for which requests you want the modifications to be made.
eg: If you want to replace
- Save the rule and test if the endpoint has been switched on the configured site.