Skip to content

Commit

Permalink
NEXT-15677 - Fix XSS for SVG files
Browse files Browse the repository at this point in the history
  • Loading branch information
keulinho authored and pweyck committed Aug 2, 2021
1 parent 912b96d commit abe9f69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/.htaccess.dist
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ DirectoryIndex index.php
</IfModule>

<IfModule mod_headers.c>
<FilesMatch "\.svg$">
<FilesMatch "\.(?i:svg)$">
Header set Content-Security-Policy "script-src 'none'"
</FilesMatch>
</IfModule>
Expand Down

0 comments on commit abe9f69

Please sign in to comment.