Skip to content

Commit 85473b1

Browse files
authored
Merge pull request #31 from oslabs-beta/BrianTryViteBuild
added port 4173 to cors in server.ts
2 parents cfb8f2d + d4d1076 commit 85473b1

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)