[GH-ISSUE #1662] Scripting interferes with Map Remote #1656

Open
opened 2026-03-03 19:53:13 +03:00 by kerem · 1 comment
Owner

Originally created by @ashton-seek on GitHub (Jun 2, 2023).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1662

Description

It seems having a Map Remote setup for a domain will not work correctly if there is also a Scripting script running on that domain.

Steps to Reproduce

Given two domains, A and B that respond to the same requests.

  1. Create a script matching domain A with a regex, any method running on Requests only. Add a header to the request and return the modified request.
  2. Create a Map Remote rule for domain A to map to domain B and add a query parameter
  3. Make a request to A on some client
  4. Disable Scripting
  5. Make a request to A on some client again

Current Behavior

The Map Remote does not map to domain B when Scripting is enabled. Step 3 behaves incorrectly.

Expected Behavior

All requests map to domain B even when scripting is enabled.

Environment

  • App version: Proxyman Version 4.8.0 (48000)
  • macOS version: 13.4 (22F66)
Originally created by @ashton-seek on GitHub (Jun 2, 2023). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/1662 ## Description It seems having a Map Remote setup for a domain will not work correctly if there is also a Scripting script running on that domain. ## Steps to Reproduce Given two domains, A and B that respond to the same requests. 1. Create a script matching domain A with a regex, any method running on Requests only. Add a header to the request and return the modified request. 2. Create a Map Remote rule for domain A to map to domain B and add a query parameter 3. Make a request to A on some client 4. Disable Scripting 5. Make a request to A on some client again ## Current Behavior The Map Remote does not map to domain B when Scripting is enabled. Step 3 behaves incorrectly. ## Expected Behavior All requests map to domain B even when scripting is enabled. ## Environment - App version: Proxyman Version 4.8.0 (48000) - macOS version: 13.4 (22F66)
Author
Owner

@NghiaTranUIT commented on GitHub (Jun 2, 2023):

Hey @ashton-seek it's how we designed it. A request can be executed by either the Scripting or Map Remote. They won't work together.

You can write a simple Map Remote logic inside your Scripting, so it will work.

Here is the snippet code: https://docs.proxyman.io/scripting/snippet-code#change-request-destination-scheme-host-port-path

<!-- gh-comment-id:1573238327 --> @NghiaTranUIT commented on GitHub (Jun 2, 2023): Hey @ashton-seek it's how we designed it. A request can be executed by either the Scripting or Map Remote. They won't work together. You can write a simple Map Remote logic inside your Scripting, so it will work. Here is the snippet code: https://docs.proxyman.io/scripting/snippet-code#change-request-destination-scheme-host-port-path
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#1656
No description provided.