-
Notifications
You must be signed in to change notification settings - Fork 29
kcLogin: Blocked a frame with origin "http://localhost:3000" from accessing a cross-origin frame. #24
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
Comments
@MarkLyck Yes, I have encountered the same issue. Would be great, if someone can fix it. |
@MarkLyck did you find any solution. For me, it works on headless Darwin (MacOs) but not from cypress image https://hub.docker.com/layers/cypress/included/5.3.0/images/sha256-7198493e5d30c29a6650c625e47d130fbf999d58ad14b1ab71331d7a70b0bf29?context=explore |
@MarkLyck I have the same issue with I am using vuex-oidc which has oidc-client under the hood. I would be happy if this could be fixed very soon! :) EDIT |
@Fredx87 do you have any solution for us? :) |
I got around the issue by setting |
@MarkLyck , @softshipper , @raghugitrepo , @DarioZuban I fixed this issue by switching to a newer cypress version. For the vue-cli users: Be cautious: The That made my cypress setup work - for now. But for now: My cypress setup works again, with yarn and a newer cypress version. I can recommend to try it out! For vue-cli users:
For non vue-cli users:
|
Btw., just installing the latest Cypress version works as well, without the |
after kcLogin finishes and
its('body')
is logged in Cypress (last step of kcLogin succeeds)Cypress then navigates to
/
and then fails with the following error:Refused to frame 'https://sso.xxxxx.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self'".
After some googling I tried setting
"chromeWebSecurity": false,
in cypress.json as recommended.However doing that causes cypress to redirect to
chrome-error://chromewebdata/
which there is a multi-year long discussion about here: cypress-io/cypress#4220sadly this seems to have never been resolved.
There was 1 recommended solution "Using the Ignore X-Frame headers extension", which I tried, but that did not solve the problem for me.
I feel like I'm going down a rabbit hole for something completely unrelated, as no one else has reported the initial Iframe error on here?
I'm having the exact same error using
kcFakeLogin
.Versions on the frontend:
"keycloak-js": "9.0.3",
"@react-keycloak/web": "^2.1.1",
Keycloak server:
Server Version | 4.8.3.Final
The text was updated successfully, but these errors were encountered: