Browse Source

chore: enable cors for sfc as temporary fix

Evan You 3 years ago
parent
commit
4c022ccb01
2 changed files with 8 additions and 3 deletions
  1. 0 3
      packages/sfc-playground/public/_headers
  2. 8 0
      packages/sfc-playground/vercel.json

+ 0 - 3
packages/sfc-playground/public/_headers

@@ -1,3 +0,0 @@
-/assets/*
-  cache-control: max-age=31536000
-  cache-control: immutable

+ 8 - 0
packages/sfc-playground/vercel.json

@@ -0,0 +1,8 @@
+{
+  "headers": [
+    {
+      "source": "/(.*).js",
+      "headers": [{ "key": "Access-Control-Allow-Origin", "value": "*" }]
+    }
+  ]
+}