blob: 6c281db42fb22a06d77c305adfb3b678c490efca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<IfModule mod_authz_core.c>
# Deny files without extension or with specific extensions
<FilesMatch "^[^.]+$|\.(md|sh)$">
Require all denied
</FilesMatch>
</IfModule>
<IfModule mod_mime.c>
AddType font/woff .woff
AddType font/woff2 .woff2
AddCharset UTF-8 .css
AddCharset UTF-8 .svg
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType application/json "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"
ExpiresByType font/woff2 "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
</IfModule>
<IfModule mod_headers.c>
<FilesMatch "\.svg$">
Header set Content-Security-Policy "default-src 'self'; frame-ancestors 'none'; style-src 'self' 'unsafe-inline'"
</FilesMatch>
</IfModule>
|