Skip to content

Commit 5be3fad

Browse files
author
Ives van Hoorne
committed
Fix sandbox tests
1 parent 9de5d1a commit 5be3fad

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/app/scripts/start.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,12 @@ function addMiddleware(devServer, index) {
186186
})
187187
);
188188
if (process.env.LOCAL_SERVER) {
189-
devServer.use(cors());
189+
devServer.use(
190+
cors({
191+
origin: ['http://localhost:3000', 'http://localhost:3002'],
192+
credentials: true,
193+
})
194+
);
190195
devServer.use(
191196
'/api',
192197
proxy({

0 commit comments

Comments
 (0)