Skip to content

Commit 243a400

Browse files
authored
Fixing the CORS issue
Fixing the CORS issue when we run `npm run dev`
1 parent a112a23 commit 243a400

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vite.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ export default defineConfig({
1414
react(),
1515
tailwindcss(),
1616
],
17+
server: {
18+
cors: true,
19+
},
1720
esbuild: {
1821
jsx: 'automatic',
1922
},

0 commit comments

Comments
 (0)