CORS and 404 error on Web docs previews.
None of the previews that should render the components work due to CORS and 404 error.
Example for https://shadcn-solid.com/docs/components/checkbox
```red
checkbox:1 Access to script at 'https://shadcn-solid.vercel.app/_astro/checkbox-demo.BO6oBmKj.js' (redirected from 'https://shadcn-solid.com/_astro/checkbox-demo.BO6oBmKj.js') from origin 'https://shadcn-solid.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
component-preview.CxggMi-R.js:2 GET https://shadcn-solid.vercel.app/_astro/checkbox-demo.BO6oBmKj.js net::ERR_FAILED 404 (Not Found)
[...]
```
关闭于 2026-01-10 1 条评论