chore: enable cors for sfc as temporary fix

This commit is contained in:
Evan You 2023-04-06 12:46:19 +08:00
parent 4c022ccb01
commit 6e540d6ac7
2 changed files with 8 additions and 3 deletions

View File

@ -12,7 +12,7 @@
"vite": "^4.2.0"
},
"dependencies": {
"@vue/repl": "^1.3.0",
"@vue/repl": "^1.3.4",
"file-saver": "^2.0.5",
"jszip": "^3.6.0",
"vue": "workspace:*"

View File

@ -1,8 +1,13 @@
{
"headers": [
{
"source": "/(.*).js",
"headers": [{ "key": "Access-Control-Allow-Origin", "value": "*" }]
"source": "/assets/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=31536000, immutable"
}
]
}
]
}