add cors to local dev server so webview can use it

This commit is contained in:
Nate 2025-02-11 09:33:20 -08:00
parent 73f7fe3648
commit f90165aee2

View file

@ -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",