Skip to content

Commit f3c9299

Browse files
authored
Merge pull request #181 from hackmcgill/bugfix/163-CORSerror
Quick fix for CORS error
2 parents cde350e + f13a84c commit f3c9299

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}`, `https://hackerapi.mchacks.ca`],
4646
credentials: true
4747
};
4848
}

0 commit comments

Comments
 (0)