title: How to proxy rest api calls with correct headers in Apache as it comes from that server?
body: <p>How can I correctly proxy rest api call through another server as if it comes from that server ?</p>
  
  <p>Developers need to talk a a remote rest api on domain sub.xyz.com that is only accessible through domain xyz.com (Access-Control-Allow-Origin). So I though of setting up a http proxy on the server that host domain xyz.com as if the calls come from that domain.
  However, I do get the following error:</p>
  
  <blockquote>
    <p>403 Forbidden
    Access was denied to this resource.<br>
    Unauthorized: get_collection failed permission check</p>
  </blockquote>
  
  <p>The apache httpd config I use:</p>
  
  <pre><code>ProxyRequests Off
  ProxyPreserveHost Off
  SSLProxyEngine on
  ProxyPass /api https://sub.xyz.com/api
  ProxyPassReverse /api https://sub.xyz.com/api
  </code></pre>
  
  <p>How do I set this up correctly such that it works?</p>