]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: enable cors for sfc as temporary fix
authorEvan You <yyx990803@gmail.com>
Thu, 6 Apr 2023 04:46:19 +0000 (12:46 +0800)
committerEvan You <yyx990803@gmail.com>
Thu, 6 Apr 2023 04:46:19 +0000 (12:46 +0800)
packages/sfc-playground/public/_headers [deleted file]
packages/sfc-playground/vercel.json [new file with mode: 0644]

diff --git a/packages/sfc-playground/public/_headers b/packages/sfc-playground/public/_headers
deleted file mode 100644 (file)
index 9079d85..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-/assets/*
-  cache-control: max-age=31536000
-  cache-control: immutable
diff --git a/packages/sfc-playground/vercel.json b/packages/sfc-playground/vercel.json
new file mode 100644 (file)
index 0000000..b33ffef
--- /dev/null
@@ -0,0 +1,8 @@
+{
+  "headers": [
+    {
+      "source": "/(.*).js",
+      "headers": [{ "key": "Access-Control-Allow-Origin", "value": "*" }]
+    }
+  ]
+}