Modify HTTP(s) Requests - Setup Redirects, Mock APIs Response, Modify Headers, User Scripts etc
Requestly allows you to Intercept & Modify network requests. Main features include:
** Modify Headers **
- Modify HTTP(s) Request & Response headers (Extremely helpful for web developers for debugging applications)
- Can be used to handle CORS Issues in your application in your dev environment
- Remove Content-Security-Policy, X-Frame Options Headers etc
**Modify URL of the request**
Requestly allows you to modify the url of ongoing request and you can change the url to something else. Common examples include
- Redirect Production Traffic to Staging/QA/dev environment to test your latest changes before deployment to production
- Setting up Redirects (eg, facebook.com -> quora.com)
- Test your JS running in production environment. Simply redirect your JS from prod to JS from your local setup box and test if your fix/code actually works in production site.
- Creating URL shortcuts (e.g. Type j-1 in address bar will open jira.corp.example.com/projects/jira-1).
- Switching Hosts (All requests for xyz.com should go to abc.com)
- Block websites (e.g. Block social media websites to stay productive)
- Modify some part of URL (be it host, path, query parameters etc)
- Stay away from time killing sites. Setup rules like when source contains facebook.com or twitter.com then redirect to StackOverflow and do some geeky stuff.
- You can also delay certain API requests to test the loading experience of your app
- For testing different race conditions in your applications, you can delay a script by some milliseconds
- Run scripts on website and customize the web pages you want
- Support your script with popular libraries like jQuery and underscore.
- Use File Hosting service to upload long scripts and get a URL to be used in your websites or Requestly rules
- Very similar to GreaseMonkey or TamperMonkey user scripts
**File Hosting (Library Service)**
- Host JS/CSS Files and use the URLs inside Requestly rules. No need to setup local server
** Modify User Agent**
- Setup different user agents for websites and test how they behave
- Useful for web developers for testing cross-device compatibility
- Deactivate the extension when you don't need it.
- Enable/Disable the rules with just single click
- Export and import the rules and maintain a backup for your rules (They are important, you will know)
- Share Rules with other Users in one click
- Browser Sync is enabled so you create/change your rules in one browser and the changes will automatically be reflected in another.
Additionally, Requestly provides a very user friendly interface to setup your rules. You can toggle a rule with a single click. No need to delete a rule when you don't need it. Just make that inactive and activate it later whenever you need it again.