Simple cors anywhere proxy

Is there an easy way to do this in caddy? I saw someone has done it in nginx. GitHub - gyang274/nginx-cors: NGINX-CORS is a NGINX reverse proxy which adds CORS headers to the proxied request. This is a CORS-Anywhere built on NGINX instead of NodeJS.

The relative config:


Please fill out the help topic as per the forum rules.

We can’t help you unless you do.

Thanks @francislavoie. I’m not currently using Caddy for this purpose, so it’s not applicable.

At least put some effort in trying to implement it.

Support forums aren’t there for you to get free labour.

If you don’t put effort in your question, we have no incentive to put any effort in our answers.

Thanks @francislavoie. I mostly had a question about how this could be ported to caddy. I’ll try to figure it myself then.

  location ~* ^/cors/(.*):/(.*)$ {
    proxy_pass $1://$2;
    proxy_redirect ~*$1://$2(.*) /;

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.