Proxyman version?
Proxyman 2.18.0
macOS Version?
mac 10.14.6
Steps to reproduce
- Create a "Map local" rule that maps to a JSON file.
- Send the request (from Chrome, for example)
- Observe that the response headers all get removed, and replaced with default headers:
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 11661
X-Proxyman-Map-Local: Serve from file: /path/to/file.json
Expected behavior
Since my map local rule only rewrites the body, I would expect that all of the original response headers are kept on the response (except probably Content-Length). Currently, this prevents CORS-enabled requests, because the Access-Control-Allow-Origin header is removed from the response.
I think that I can work around this by using the scripting tool, but it'd be nice to have the map local tool support it as well 😄 Also, this is a great product -- love it so far!
Proxyman version?
Proxyman 2.18.0
macOS Version?
mac 10.14.6
Steps to reproduce
Expected behavior
Since my map local rule only rewrites the body, I would expect that all of the original response headers are kept on the response (except probably
Content-Length). Currently, this prevents CORS-enabled requests, because theAccess-Control-Allow-Originheader is removed from the response.I think that I can work around this by using the scripting tool, but it'd be nice to have the map local tool support it as well 😄 Also, this is a great product -- love it so far!