title: Charles Proxy - Map remote to localhost from https to http
body: <p>I'm trying to use Charles to map requests for my server to localhost on my Mac.
  The server is on HTTPS and the local is HTTP.
  I'm trying that from the Chrome browser, iOS simulator and Postman.
  it always fails.</p>
  
  <p>I set <code>map remote</code> in charles from <code>my-server.com/*</code> to <code>http://localhost:PORT</code>.
  If I try <code>https://my-server.com/</code>, charles maps the request but I get error in CONNECT request.
  If I try <code>http://my-server.com</code>, the request succeeds.</p>
  
  <p>EDIT:
  There is an answer that suggests <code>rewrite</code> instead of <code>map remote</code>. it is good and working, but it feels to me as a workaround. I would like to use <code>map remote</code> as usual. I guess it require both Charles setup and machine setup</p>