add cors to local dev server so webview can use it
This commit is contained in:
parent
73f7fe3648
commit
f90165aee2
1 changed files with 8 additions and 0 deletions
|
|
@ -16,6 +16,14 @@ export default defineConfig({
|
|||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
cors: {
|
||||
origin: "*",
|
||||
methods: ["GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"],
|
||||
allowedHeaders: ["*", "Content-Type", "Authorization"],
|
||||
credentials: true,
|
||||
},
|
||||
},
|
||||
test: {
|
||||
globals: true,
|
||||
environment: "jsdom",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue