-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Experiencing some CORS issue in v6.0.0
while using storybook composition feature.
#11892
Comments
6.0.0-rc
while using storybook composition feature.v6.0.0
while using storybook composition feature.
@rannyeli -- can you check the network tab -- there should be a "no cors" fetch request to |
@tmeasday |
@rannyeli -- to be clear -- do you mean that you yourself browsed there, or that the request that SB makes in the background worked? |
OK, I reproduced this. @ndelangen the bug here is the assumption encoded in this test: and in these lines: storybook/lib/api/src/modules/refs.ts Lines 68 to 71 in 824fe54
When you do a |
@ndelangen there is an issue here because there is no way to tell if a |
I suspect the obvious solution is to add CORS headers to the dev server. |
I built storybook static and served the assets from a cors enabled python http server. I was able to get the right response headers (Access-Control-Allow-Origin: *). But I was still getting a cors issue for |
Thanks it works now! I think it would be beneficial to add |
if there's no method to determine if a |
I get the same CORS error while trying out composition for the first time. I'm using I get Here's a screenshot of my response: I've highlighted the empty HTML storybook in the left menu, and the response which shows what should be displayed in the story iframe. Question: i.e. I ran Is Storybook composition a replacement for standalone? |
related: |
Should be easy enough to do! |
|
PR is open, with a fix |
Crikey!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.14 containing PR #12085 that references this issue. Upgrade today to try it out! Closing this issue. Please re-open if you think there's still more to do. |
Experiencing some CORS issue in
v6.0.0
while using storybook composition feature.I'm adding a ref for a local storybook:
The local storybook works well on port 9010, but not loaded from the combined storybook
dev-tools output:
In addition, I would like to know if there is an option to give a path of the storybook build directory as a url of ref?
Originally posted by @rannyeli in #9311 (comment)
The text was updated successfully, but these errors were encountered: