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

Uncaught DOMException: Blocked a frame with origin "https://printjs.crabbly.com" from accessing a cross-origin frame. #438

Closed
raymond8080 opened this issue May 14, 2020 · 8 comments

Comments

@raymond8080
Copy link

raymond8080 commented May 14, 2020

I am getting an error when attempting to access the a webpage this week, using Chrome browser, Version 81.0.4044.138 (Official Build) (64-bit)

Previously, it is working. I doubt that Chrome has done some update blocking it to work.
The same error can be simulated at https://printjs.crabbly.com/ by clicking first example "Print PDF"

Uncaught DOMException: Blocked a frame with origin "https://printjs.crabbly.com" from accessing a cross-origin frame.

@quentin-decre
Copy link

Same problem here !

@crabbly
Copy link
Owner

crabbly commented Sep 4, 2020

Hey guys, I'm using the latest version of Chrome, currently version 85, and it seems to be working fine. Hopefully this was a temporary issue with v81. If necessary, please reopen this with the browser version and OS. Thank you.

@crabbly crabbly closed this as completed Sep 4, 2020
@sreiterer
Copy link

sreiterer commented Nov 17, 2020

Hi, i think the problem is back. The previous weeks it worked fine, but now i get the cors problem:

The problem can easily reproduced by clicking on the 'Print PDF' button at https://printjs.crabbly.com/:

print.js?v1.5.0:1 Uncaught DOMException: Blocked a frame with origin "https://printjs.crabbly.com" from accessing a cross-origin frame. at u (https://printjs.crabbly.com/print.js?v1.5.0:1:4095) at HTMLIFrameElement.n.onload (https://printjs.crabbly.com/print.js?v1.5.0:1:5017)

Chrome version: 86.0.4240.75 (32 bit)
Windows version: Windows 10 Pro (1909)

Workaround: Disable the feature of syncing settings to your google account.

@moyuanhuang
Copy link

Hello, any update on this issue?

@shahdeep1989
Copy link

shahdeep1989 commented Jun 9, 2021

@crabbly I am using Version 91.0.4472.77 of chrome still facing same issue.

Error: SecurityError: Blocked a frame with origin "http://localhost:3000" from accessing a cross-origin frame.

I am trying below code:
print('html_div_tag_id', 'pdf');

Screenshot 2021-06-09 at 12 14 21 PM

@quarryman
Copy link

The same issue for me, but it probably depends on browser. It works perfectly on Edge or on chrome on anther machine

@bartello1982
Copy link

same here

@tbroniewski
Copy link

The problem still exists. I'm afraid it is due to more restricted security in browsers (against iFrames).

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

No branches or pull requests

9 participants