Closed hdhog closed 3 years ago
Unfortunately we don't know much about Caddy, you can search other issues for the configuration of Apache or NGINX, maybe it'll hep you.
I had the same problem with apache. It took several days of fiddling. I had an open issue right before yours even. Here is what I remember adding to my apache config.
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
RequestHeader set Origin "http://project.<domain>"
RequestHeader set Access-Control-Allow-Origin: "https://project.<domain>"
Header always set Access-Control-Allow-Origin "*"
Lavagna does a CORS like check and then denies the connection.
EDIT: I included my full apache config in my closed issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I had the same problem but resolved by removing the Origin
header sending to upstream as SitoCH mentioned in https://github.com/digitalfondue/lavagna/issues/123#issuecomment-557836783:
example.com {
reverse_proxy 127.0.0.1:8080 {
header_up -Origin
}
}
Caddy config
Lavagna running in official docker container.
Browser console
traffic info
Response headers
Request headers