Closed refugedesigns closed 4 months ago
Encountering the same issues. Appears to be due to Figma's Content Security Policy for frame-ancestors:
Refused to frame 'https://www.figma.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' vscode-webview: vscode-file:".
Cannot reproduce, live demo is working. Please fill complete reproduce steps.
But seeing your screenshot contains a new Figma share URL format, I suspect this is same as #239. Their embed page does not include CSP so I guess the addon fallbacks to regular iframe embeds. If this is due to the new URL format, workaround is (from https://github.com/storybookjs/addon-designs/issues/239#issue-2301111721):
...So my workaround so far has been to use the Copy link to selection and simply swap out
design
withfile
.
Confirming changing design
to file
worked in my instance.
same here, design
to file
working like a charm! good luck
Affected design types
Describe the bug
I installed storybook version 8.0.8 and added the storybook-addon-design but, the panel shows an error "refuse to connect" with I add a figma link.
How to reproduce the bug?
Expected behaviour
Should load the picture from the figma link
Environment
Affected versions
8.0.2
Storybook versions
8.0.8