DOMException: Blocked a frame with origin
- Dominant language
- JavaScript
- Stars
- 4.5k
- Forks
- 688
- PR merge metrics
- No merged PRs in 30d
Description
I got a problem with printing with the first few buttons on https://printjs.crabbly.com/ :
Console error:
````
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)
````
I think it has to do with the variant because the `https://printjs.crabbly.com` is not equal to `blob:https://printjs.crabbly.com`
Browser details: http://supportdetails.net/50FRHNM4
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure using the first few print buttons on https://printjs.crabbly.com/ and inspect the print.js?v1.5.0 iframe onload path shown in the console stack. Pay particular attention to the blob iframe and its cross-origin access; the issue is done when those buttons print without the DOMException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100