feat: security http headers
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
/*
|
||||||
|
Content-Security-Policy: default-src 'self'; script-src 'self' https://cdnjs.cloudflare.com/ajax/libs/tocas/ https://hcaptcha.com https://*.hcaptcha.com https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/ https://challenges.cloudflare.com; style-src 'self' https://cdnjs.cloudflare.com/ajax/libs/tocas/ https://hcaptcha.com https://*.hcaptcha.com 'unsafe-inline'; img-src 'self' blob: https://pub-e115c4e749734702abd09206cba74257.r2.dev/; font-src https://cdnjs.cloudflare.com/ajax/libs/tocas/; frame-src https://hcaptcha.com https://*.hcaptcha.com https://www.google.com/recaptcha/ https://recaptcha.google.com/recaptcha/ https://challenges.cloudflare.com; connect-src 'self' https://hcaptcha.com https://*.hcaptcha.com;
|
||||||
|
X-Frame-Options: DENY
|
||||||
|
X-Content-Type-Options: nosniff
|
||||||
|
X-Robots-Tag: noindex
|
||||||
@@ -11,6 +11,10 @@ export default defineConfig({
|
|||||||
{
|
{
|
||||||
src: 'functions',
|
src: 'functions',
|
||||||
dest: '.',
|
dest: '.',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
src: '_headers',
|
||||||
|
dest: '.',
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user