We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0195cd9 commit 14692f1Copy full SHA for 14692f1
2 files changed
astro.config.mjs
@@ -9,7 +9,20 @@ export default defineConfig({
9
integrations: [mdx(), sitemap()],
10
security: {
11
csp: {
12
- directives: ["default-src 'self'"],
+ directives: [
13
+ "default-src 'none'",
14
+ "base-uri 'none'",
15
+ "form-action 'none'",
16
+ "frame-ancestors 'none'",
17
+ "img-src 'self'",
18
+ "font-src 'self'",
19
+ ],
20
+ },
21
22
+ server: {
23
+ headers: {
24
+ 'X-Content-Type-Options': 'nosniff',
25
+ 'Referrer-Policy': 'strict-origin-when-cross-origin',
26
},
27
28
fonts: [
public/.htaccess
@@ -0,0 +1,4 @@
1
+<IfModule mod_headers.c>
2
+ Header always set X-Content-Type-Options "nosniff"
3
+ Header always set Referrer-Policy "strict-origin-when-cross-origin"
4
+</IfModule>
0 commit comments