Skip to content

Commit 3aa8fb2

Browse files
committed
added port 4173 to cors in server.ts
1 parent e10bf22 commit 3aa8fb2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

server/server.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,12 @@ import stylesRouter from './routers/stylesRouter';
5050
// options: origin: allows from localhost when in dev or the app://rse when using prod, credentials: allows credentials header from origin (needed to send cookies)
5151
app.use(
5252
cors({
53-
origin: [`http://localhost:8080`, 'app://rse', API_BASE_URL],
53+
origin: [
54+
`http://localhost:8080`,
55+
'app://rse',
56+
API_BASE_URL,
57+
'http:/localhost:4173'
58+
],
5459
credentials: true
5560
})
5661
);

0 commit comments

Comments
 (0)