Skip to content

Commit 708364d

Browse files
authored
fix: CORS error in vite server
1 parent f283ad4 commit 708364d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vite.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ import path from 'path'
88
import { v4wp } from '@kucrut/vite-for-wp'
99

1010
export default {
11+
server: {
12+
cors: {
13+
origin: '*',
14+
},
15+
},
1116
plugins: [
1217
alias(),
1318
react(),

0 commit comments

Comments
 (0)