ProxymanApp / ProxymanApp/Proxyman

Feature Request - Allow Map Local/Remote with Scripting

Open
#606 13 comments 0 reactions 1 assignee View on GitHub

@NghiaTranUIT is already working on this.

Since Aug 31, 2020.

✅ Done Feature request
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.