This repository was archived by the owner on Aug 6, 2025. It is now read-only.
Commit 98a88ed
committed
Enable the mod_headers module
This change makes it possible to add CORS and other headers to HTTP responses.
This is necessary if we want to use static assets like fonts and icons
in single directory components rendered in Storybook using the new
Storybook contrib module.
Add the following directives to the `.htaccess`-file in your web root to
set the required header:
```
<FilesMatch "\.(eot|gif|ico|jpeg|jpg|otf|png|svg|ttf|woff|woff2)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
```1 parent 9d6627e commit 98a88ed
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments