1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-14 09:05:17 +01:00
This commit is contained in:
Matthias Kretschmann 2015-06-08 22:55:38 +02:00
parent f6b2719c25
commit 8aff81bda7

View File

@ -23,9 +23,9 @@
# http://enable-cors.org/ # http://enable-cors.org/
# http://www.w3.org/TR/cors/ # http://www.w3.org/TR/cors/
# <IfModule mod_headers.c> <IfModule mod_headers.c>
# Header set Access-Control-Allow-Origin "*" Header set Access-Control-Allow-Origin "*"
# </IfModule> </IfModule>
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# | Cross-origin images | # | Cross-origin images |
@ -38,7 +38,7 @@
<IfModule mod_setenvif.c> <IfModule mod_setenvif.c>
<IfModule mod_headers.c> <IfModule mod_headers.c>
<FilesMatch "\.(bmp|cur|gif|ico|jpe?g|png|svgz?|webp)$"> <FilesMatch "\.(bmp|cur|gif|ico|jpe?g|png|svg|svgz?|webp)$">
SetEnvIf Origin ":" IS_CORS SetEnvIf Origin ":" IS_CORS
Header set Access-Control-Allow-Origin "*" env=IS_CORS Header set Access-Control-Allow-Origin "*" env=IS_CORS
</FilesMatch> </FilesMatch>
@ -52,7 +52,7 @@
# Allow cross-origin access to web fonts. # Allow cross-origin access to web fonts.
<IfModule mod_headers.c> <IfModule mod_headers.c>
<FilesMatch "\.(eot|otf|tt[cf]|woff2?)$"> <FilesMatch "\.(eot|svg|otf|tt[cf]|woff2?)$">
Header set Access-Control-Allow-Origin "*" Header set Access-Control-Allow-Origin "*"
</FilesMatch> </FilesMatch>
</IfModule> </IfModule>