CORS policy issue

Created on 4 June 2025, 24 days ago

Problem/Motivation

When running Storybook locally (http://localhost:6006), CORS policy errors occur for both .woff and .woff2 font files, even though the recommended cors.config has been added as described on the module's homepage.

Error message example:
Access to font at '<font-path>.woff2' from origin 'http://localhost:6006' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

These CORS errors do not appear when accessing the same fonts on the Drupal site itself.

🐛 Bug report
Status

Active

Version

1.0

Component

Storybook

Created by

🇷🇸Serbia dekisha

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024