mirror of
https://github.com/ProxymanApp/Proxyman.git
synced 2026-04-27 17:15:49 +03:00
[GH-ISSUE #1719] Why Map Remote can't work with Scripting enabled? #1712
Labels
No labels
Discussion
Feature request
In Progress...
Plugins
Waiting response
Windows
Windows
bug
duplicate
enhancement
feature
good first issue
iOS
macOS 10.11
question
wontfix
✅ Done
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Proxyman#1712
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @4332weizi on GitHub (Jul 20, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1719
Description
I have some URLs map remote enabled, for example, map remote https://host/path/* to http://192.168.1.1:8080/path/* , and it works fine.
But the map remote rule can't work when I add the script to URLs */path/*.
Steps to Reproduce
Current Behavior
Map Remotecan't work withScriptingenabledExpected Behavior
Map RemoteandScriptingboth work fine.Environment
@NghiaTranUIT commented on GitHub (Jul 20, 2023):
Yes, Map Remote doesn't work with the Scripting.
You can use this snippet code to achieve the same thing as Map Remote doesn't with the Scripting.
@4332weizi commented on GitHub (Jul 20, 2023):
We have something like hash check on the request body, the body JSON elements re-ranged after scripting, and 401 returned from the server due to check failed. How to avoid request body JSON element re-range?
@NghiaTranUIT commented on GitHub (Jul 21, 2023):
It's a known issue of the Scripting because Swift Dictionary doesn't have the ordered keys.
@4332weizi commented on GitHub (Jul 21, 2023):
Do you have any solutions?
@NghiaTranUIT commented on GitHub (Jul 21, 2023):
Unfortunately, I haven't found a better solution yet. For now, when modifying the Body of the Request/Response in the Script. It might change the JSON order key.
@4332weizi commented on GitHub (Jul 21, 2023):
ok, thanks