area17 / blast

Storybook for Laravel Blade 🚀
https://dev.to/area17/getting-started-with-blast-storybook-for-laravel-blade-c5c
Apache License 2.0
268 stars 39 forks source link

CORS issue #40

Closed mattgreenfield closed 2 years ago

mattgreenfield commented 2 years ago

Hello, I'm sorry to report I'm having CORs issues with the default installation.

I have tried the workaround in the blog post listed here but it has not worked.

Storybook instance loads fine but I get a 301 error and CORS errors in the console for the iframe content.

Screenshot 2022-02-04 at 10 19 22

I can confirm that going to that page directly, loads the button component just fine.

If there's anything I can do to help or more info I can provide please let me know.

Lastly, thanks for creating this - it's a much needed addition to laravel and will allow me to remove a lot of my own hacks for getting components in to storybook.

mattgreenfield commented 2 years ago

I've just found that a colleague had already implemented some CORs handling so adding 'paths' => [ ..., '*/*'], in config/cors.php has solved my issue for now at least.