Skip to content

Commit

Permalink
Add explicit CORS config to Vite
Browse files Browse the repository at this point in the history
  • Loading branch information
jarosenb committed Jan 30, 2025
1 parent 486051b commit 71d4c0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ export default defineConfig({
server: {
origin: 'cep.test',
port: 3000,
cors: {
origin: ['https://cep.test'],
},
hmr: {
protocol: 'ws',
host: 'localhost',
Expand Down

0 comments on commit 71d4c0b

Please sign in to comment.