添加模型库开发资源CORP响应头
This commit is contained in:
@@ -15,6 +15,9 @@ export default defineConfig({
|
|||||||
port: 5174,
|
port: 5174,
|
||||||
strictPort: true,
|
strictPort: true,
|
||||||
https: httpsConfig,
|
https: httpsConfig,
|
||||||
|
headers: {
|
||||||
|
"Cross-Origin-Resource-Policy": "same-site"
|
||||||
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api": "http://127.0.0.1:3001",
|
"/api": "http://127.0.0.1:3001",
|
||||||
"/storage": "http://127.0.0.1:3001"
|
"/storage": "http://127.0.0.1:3001"
|
||||||
|
|||||||
Reference in New Issue
Block a user