ProxymanApp / ProxymanApp/Proxyman
Feature Request - Allow Map Local/Remote with Scripting
@NghiaTranUIT is already working on this.
Since Aug 31, 2020.
- Dominant language
- No language data
- Stars
- 7k
- Forks
- 237
- PR merge metrics
- No merged PRs in 30d
Description
Proxyman version?
2.5.2 (20520)
macOS Version?
10.15.6 (19G2021)
Feature Request
Allow "Map Local" and "Map Remote" features to work with "Scripting" for the same request.
Current Behavior
When Scripting is enabled for the same request as Map Local, Map Local is ignored.
Expected Behavior
It would be great if Map Local can run first to replace the body of the response.
After this, additional Scripting can be used to further modify the response body or headers.
Example use case
I am trying to use Map Local to map an entire directory to test changes before deploying changes to an app online. Map Local causes all CORS headers to be lost. (Note, the same thing happens in Charles Proxy).
I was hoping I would be able to use the Scripting feature to modify the headers in the response to allow CORS again after the mapping has run.
In Charles Proxy I was able to use the Map Local and "Rewrite" features at the same time to achieve this, though it was quite convoluted to achieve. So far it is impossible to achieve in Proxyman.
By the way, thank you for your work on this awesome tool. I first noticed this tool a month ago and I purchased a license as soon as you released the scripting feature. I believe allowing scripting to work with mapping would make tool even more attractive.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.