mirror of https://github.com/vuejs/core.git
chore: enable cors for sfc as temporary fix
This commit is contained in:
parent
4c022ccb01
commit
6e540d6ac7
|
@ -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:*"
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue