Skip to content
Discussion options

You must be logged in to vote

@38leinaD If you have SPA which delegates to Quarkus to do the authorization code flow then the only way to manage CORS at the Fetch level is to follow the workaround described at: https://quarkus.io/guides/security-oidc-code-flow-authentication#single-page-applications.

Keycloak Authorization endpoint does not support CORS so the workaround is to let Quarkus return an error instead of the redirect so that the error catch block could retry the request with the browser API, thus bypassing the CORS restriction. Give it a try please

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 38leinaD
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants