Search results

  1. B

    OLS and CORS headers when using Rewrite to proxy to a different website

    We were hoping it will work like this using a context to append the CORS header as we managed a similar implementation using an Apache server and the below rules in .htaccess: RewriteRule ^api/(.*)$ http://domain.com/api/$1?apikey=12345678 [L,NE,P,QSA,ENV=CORS:true] Header set...
  2. B

    OLS and CORS headers when using Rewrite to proxy to a different website

    Sorry but we do not understand your reply. The target api/ the server will proxy to is not a service we manage so we cannot set CORS there. The CORS needs to be setup on OLS for a vhost, that is why we tried to use the context setting we mentioned earlier. The context work for the vhost and...
  3. B

    OLS and CORS headers when using Rewrite to proxy to a different website

    While using OLS we need for a project to access an API from a provider that is not CORS configured (no Access-Control-Allow-Origin) and also we need to send an API key which needs to be hidden from client side. So the desired solution is to use a vhost that has a rewrite rule similar to the...
Top