-
Notifications
You must be signed in to change notification settings - Fork 71
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 from accessing a cross-origin frame. #108
Comments
Both
Does your DocsPage work until you interact with the input? The error seems to be one related to the Same-origin policy. |
First of all, thanks for your really quick reply! |
Found out it's a bug in upstream. Opened the issue there so closing this. A quick workaround: export const Workaround1 = () => (
<div>
<iframe src="https://wikipedia.org" />
<button onClick={() => action('onClick')()}>Button</button>
</div>
)
// view is a reference for the window (frame?) object
export const Workaround2 = () => (
<div>
<iframe src="https://wikipedia.org" />
<button onClick={ev => action('onClick')({ ...ev, view: null })}>Button</button>
</div>
) |
Is there any other workaround while waiting for storybookjs/telejson#71 to be fixed? In my case, I just use Figma with addon actions. All the statements after
|
Affected design types
figma
experimental-figspec
link
image
iframe
Describe the bug
I create storybook doc page using Remixing DocsPage strategy.
When I add Figma, IFrame, Design Doc Blocks I get an error:
Uncaught DOMException: Blocked a frame with origin from accessing a cross-origin frame.
This doesn't happen to Figspec though. But we are not ready to use it and take risks.This error blocks our components to be rendered correctly.
To Reproduce
Expected behavior
No DOMException error (e.g. as for the Figspec Doc Block)
Environment
Versions
Paste the result of
npm list @storybook/ui
oryarn list --pattern @storybook/ui
below.Paste the result of
npm list storybook-addon-designs
oryarn list --pattern storybook-addon-designs
below.The text was updated successfully, but these errors were encountered: