How can I correctly proxy rest api call through another server as if it comes from that server ?
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:
403 Forbidden Access was denied to this resource.
Unauthorized: get_collection failed permission check
The apache httpd config I use:
ProxyRequests Off
ProxyPreserveHost Off
SSLProxyEngine on
ProxyPass /api https://sub.xyz.com/api
ProxyPassReverse /api https://sub.xyz.com/api
How do I set this up correctly such that it works?