Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

feat: add vercel headers #579

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
95 changes: 95 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"headers": [
{
"source": "/static/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/(.*).ico",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/(.*).(png|jpg|webp|svg)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/(.*).(eot|otf|ttf|ttc|woff|woff2|font|css)",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/(.*).(js|css|xml|gz|html|svg)",
"headers": [
{
"key": "Vary",
"value": "Accept-Encoding"
}
]
},
{
"source": "/",
"headers": [
{
"key": "Vary",
"value": "Accept-Encoding"
}
]
},
{
"source": "/(.*)",
"headers": [
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
},
{
"key": "Access-Control-Allow-Credentials",
"value": "false"
},
{
"key": "Access-Control-Allow-Origin",
"value": "*"
},
{
"key": "Access-Control-Allow-Methods",
"value": "GET,POST,OPTIONS"
},
{
"key": "Access-Control-Allow-Headers",
"value": "*"
},
{
"key": "Content-Security-Policy",
"value": "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; frame-ancestors 'self'; form-action 'self'; base-uri 'self'; connect-src 'self' *.infura.io www.gasnow.org ethgasstation.info *.portis.io *.bugsnag.com api.thegraph.com wss://api.blocknative.com; frame-src 'self' *.portis.io;"
}
]
}
]
}