I am using “caddy run” from the command line to run caddy.
I get the following error when I attempt to hit the website:
“The request cannot be processed because this resource does not support Cross Origin Sharing requests, or the request Origin is not authorized to access this resource. If ords is being reverse proxied ensure the front end server is propagating the host name, for mod_proxy ensure ProxyPreserveHost is set to On”
I am currently running things successfully with Apache HTTPD, and I would like to switch to Caddy for ease of SSL and ease of configuration in general.
I just need help getting the reverse_proxy options correct. Please help.
By default, Caddy passes through the header from the originating request, but it seems like ORDS is expecting something else. Using header_up can override it.
By the way, since you have two different paths you want to proxy to, you can used a named matcher to simplify your config (avoid having two reverse_proxy directives):