Add Security Headers (#1200)

This commit is contained in:
Lipis 2020-04-04 02:36:12 +03:00 committed by GitHub
parent 31f76d59a2
commit 00c5823a5e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 1 deletions

View file

@ -1,4 +1,31 @@
{
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "Feature-Policy",
"value": "*"
},
{
"key": "Referrer-Policy",
"value": "origin"
},
{
"key": "Content-Security-Policy",
"value": "default-src https: data: 'unsafe-inline'; connect-src https://*.excalidraw.com wss://excalidraw-socket.herokuapp.com https://excalidraw-socket.herokuapp.com"
}
]
}
],
"redirects": [
{
"source": "/([^.]+)",