[GH-ISSUE #555] [Feature Request] Support middleware to automatically modify request or response #552

Open
opened 2026-03-03 19:19:46 +03:00 by kerem · 3 comments
Owner

Originally created by @leapful on GitHub (Jul 16, 2020).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/555

Originally assigned to: @NghiaTranUIT on GitHub.

Hello,

I'm looking for a way to inject custom headers into request or response by using Proxyman. Currently, there are only feature Map Local which replaces request or response by using a local file or feature Breakpoint to pause and modify request or response, but it would be great to just inject specific headers to the original request or response automatically.

Thanks for your best effort on Proxyman..

Originally created by @leapful on GitHub (Jul 16, 2020). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/555 Originally assigned to: @NghiaTranUIT on GitHub. Hello, I'm looking for a way to inject custom headers into request or response by using Proxyman. Currently, there are only feature Map Local which replaces request or response by using a local file or feature Breakpoint to pause and modify request or response, but it would be great to just inject specific headers to the original request or response automatically. Thanks for your best effort on Proxyman..
Author
Owner

@NghiaTranUIT commented on GitHub (Jul 16, 2020):

The scripting feature would solve your case easily. Good news is that we're working on it (among with beta iOS Proxyman too 🙌 ) and it gonna release in the next release 🎉

Scripting means you can programmatically write Javascript to inject the custom headers or manipulate the body of the request/response on the fly.

<!-- gh-comment-id:659146348 --> @NghiaTranUIT commented on GitHub (Jul 16, 2020): The scripting feature would solve your case easily. Good news is that we're working on it (among with beta iOS Proxyman too 🙌 ) and it gonna release in the next release 🎉 Scripting means you can programmatically write Javascript to inject the custom headers or manipulate the body of the request/response on the fly.
Author
Owner

@NghiaTranUIT commented on GitHub (Jul 20, 2020):

Related to #557

<!-- gh-comment-id:660755775 --> @NghiaTranUIT commented on GitHub (Jul 20, 2020): Related to #557
Author
Owner

@NghiaTranUIT commented on GitHub (Aug 27, 2020):

@leapful, please check out the Scripting feature in the latest build that helps you to inject Headers into the Request/Response.

Here is the snippet code that shows you how to do it: https://docs.proxyman.io/scripting/snippet-code

Detailed at: https://github.com/ProxymanApp/Proxyman/issues/329#issuecomment-682012601

<!-- gh-comment-id:682015321 --> @NghiaTranUIT commented on GitHub (Aug 27, 2020): @leapful, please check out the Scripting feature in the latest build that helps you to inject Headers into the Request/Response. Here is the snippet code that shows you how to do it: https://docs.proxyman.io/scripting/snippet-code Detailed at: https://github.com/ProxymanApp/Proxyman/issues/329#issuecomment-682012601
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#552
No description provided.