Charles Proxy - Map remote to localhost from https to http

You should try using the Rewrite function like this:

enter image description here


enter image description here

As @kubano suggested, I'm using REWRITE tool with URL rewrite. In order to map all subpaths, I'm using regex group to replace the hostname but re-attach all that comes after '.com'. When wrapping something with () it is referred as 'group' and you can use it with $1 $2 ... and so on. in this case, what ever comes after '.com' is referred as $1 in the replace section


I suggest using Map Remote from Proxyman to map between HTTP <-> HTTPS which is easier to setup.

Just create a rule, set HTTPS to HTTP, and the host. It will map from https://your-server.com to http://localhost:3000

Doc: https://docs.proxyman.io/advanced-features/map-remote

enter image description here

Disclaimer: I'm the creator of Proxyman and hopefully it would help you.