Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CH2 example doesn't display the buttons after logging in #16

Open
scottsdrv opened this issue Sep 8, 2023 · 4 comments
Open

CH2 example doesn't display the buttons after logging in #16

scottsdrv opened this issue Sep 8, 2023 · 4 comments

Comments

@scottsdrv
Copy link

After successfully logging in to the frontend application included in the CH2 example application, all I see is a blank page. I've tried this in both Chrome and Safari, and the same results are the same.

Looking at index.html, I would expect to see:

  • Logout button
  • Show ID Token button
  • Show Access Token button
  • Refresh button
  • Invoke Service button

Am I missing something?

@scottsdrv
Copy link
Author

I was able to get around the issue by changing the "Web origins" config in the 'myclient' client to either a plus sign "+" or an asterisk "*".

@qx01065
Copy link

qx01065 commented Sep 28, 2023

I too just see a blank screen after login, but changing web origins to * does not help.
I am user docker image quay.io/keycloak/keycloak:22.0.3

@jockexa
Copy link

jockexa commented Oct 11, 2023

Adding "*" to Web Origins helped me.

image

@oleg-glushko
Copy link

Just remove a trailing slash after a port number in the "Web origins" URL to fix this problem. Here's what is written in a browser's console output:
localhost/:1 Access to XMLHttpRequest at 'http://localhost:8080/realms/myrealm/protocol/openid-connect/token' from origin 'http://localhost:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

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

No branches or pull requests

4 participants