Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 98a88ed

Browse files
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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ RUN \
1919
a2enmod remoteip && \
2020
a2enmod expires && \
2121
a2enmod ssl && \
22+
a2enmod headers && \
2223
a2ensite ssl && \
2324
a2enconf allow-override-all && \
2425
a2enconf php-fpm

0 commit comments

Comments
 (0)