Skip to content

Commit 23db2d1

Browse files
committed
Quick fix for CORS error
1 parent 4ebd870 commit 23db2d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ let corsOptions = {};
3636

3737
if (!Services.env.isProduction()) {
3838
corsOptions = {
39-
origin: [process.env.FRONTEND_ADDRESS_DEV],
39+
origin: [`http://${process.env.FRONTEND_ADDRESS_DEV}`],
4040
credentials: true
4141
};
4242
} else {
4343
// TODO: change this when necessary
4444
corsOptions = {
45-
origin: [process.env.FRONTEND_ADDRESS_DEPLOY],
45+
origin: [`https://${process.env.FRONTEND_ADDRESS_DEPLOY}`],
4646
credentials: true
4747
};
4848
}

0 commit comments

Comments
 (0)