feat: enable Apache headers and rewrite module in Dockerfile; wrap header setting in .htaccess with IfModule check
This commit is contained in:
@@ -9,5 +9,7 @@ Options -Indexes
|
||||
|
||||
# Mencegah MIME sniffing
|
||||
<FilesMatch "\.(jpg|jpeg|png)$">
|
||||
Header set X-Content-Type-Options "nosniff"
|
||||
<IfModule mod_headers.c>
|
||||
Header set X-Content-Type-Options "nosniff"
|
||||
</IfModule>
|
||||
</FilesMatch>
|
||||
Reference in New Issue
Block a user