[SOLVED] Cadddy v2 reverse proxy

Thank you for your answer, @francislavoie

I’d have to investigate what Location header that app sends. However in the meantime, is there a way to remove that on Caddy’s end? I have seen header_down Location. Would that help?

I have also tried

route /api* {
    uri strip_prefix api
    reverse_proxy  192.168.1.2:8001   
}

which was suggested here V2 reverse_proxy: please add CORS example to the docs - #22 by Frank_R. While that removed the /api part, it also breaks links and css style source addresses, so that is a no go.