Skip to content

Instantly share code, notes, and snippets.

@soerface
Created October 21, 2024 00:14
Show Gist options
  • Save soerface/051e0f4d954de0319a005cb6f422a67a to your computer and use it in GitHub Desktop.
Save soerface/051e0f4d954de0319a005cb6f422a67a to your computer and use it in GitHub Desktop.
Caddy workaround for Keycloak 25 CORS issue with Swagger UI
example.com {
reverse_proxy keycloak:8080 {
# https://github.com/keycloak/keycloak/issues/12682
# x-csrftoken is set by the Swagger UI
header_down +Access-Control-Allow-Headers "x-csrftoken"
}
}
@soerface
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment