Skip to content

🎥 Make videos programmatically with React

allow CORS for fonts so they can be embedded

Jonny Burger024adef8b997
diff --git a/vercel.json b/vercel.json
index 54047c543a..b5b67503be 100644
--- a/vercel.json
+++ b/vercel.json
@@ -1,4 +1,22 @@
{
+ "headers": [
+ {
+ "//": "Allow CORS for fonts so they can be embedded in Mailerlite",
+ "source": "/img/gt-planar(.*)",
+ "headers": [
+ { "key": "Access-Control-Allow-Credentials", "value": "true" },
+ { "key": "Access-Control-Allow-Origin", "value": "*" },
+ {
+ "key": "Access-Control-Allow-Methods",
+ "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT"
+ },
+ {
+ "key": "Access-Control-Allow-Headers",
+ "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"
+ }
+ ]
+ }
+ ],
"redirects": [
{
"source": "/changelog",