diff options
| author | 2016-03-08 18:20:14 +0100 | |
|---|---|---|
| committer | 2016-03-08 18:20:14 +0100 | |
| commit | c4ebc5c4a9e403d854b85b4138ffc3f6957689cc (patch) | |
| tree | c925ae794729a02d30903d41441c8ec64b018e74 /p/themes | |
| parent | c424c8acef45cc32187526d94e4d0bb06092de69 (diff) | |
CSP for SVG
And moved .htaccess rules in the folder there are used
https://github.com/FreshRSS/FreshRSS/issues/1114
Diffstat (limited to 'p/themes')
| -rw-r--r-- | p/themes/.htaccess | 21 | ||||
| -rw-r--r-- | p/themes/index.html | 13 |
2 files changed, 34 insertions, 0 deletions
diff --git a/p/themes/.htaccess b/p/themes/.htaccess new file mode 100644 index 000000000..bde718537 --- /dev/null +++ b/p/themes/.htaccess @@ -0,0 +1,21 @@ +<IfModule mod_mime.c> + AddType application/font-woff .woff + + AddCharset UTF-8 .css + AddCharset UTF-8 .svg +</IfModule> + +<IfModule mod_expires.c> + ExpiresActive on + ExpiresByType application/font-woff "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'; style-src 'self' 'unsafe-inline'" + </FilesMatch> +</IfModule> diff --git a/p/themes/index.html b/p/themes/index.html new file mode 100644 index 000000000..85faaa37e --- /dev/null +++ b/p/themes/index.html @@ -0,0 +1,13 @@ +<!DOCTYPE html> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-GB" lang="en-GB"> +<head> +<meta charset="UTF-8" /> +<meta http-equiv="Refresh" content="0; url=/" /> +<title>Redirection</title> +<meta name="robots" content="noindex" /> +</head> + +<body> +<p><a href="/">Redirection</a></p> +</body> +</html> |
