We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cde350e + f13a84c commit f3c9299Copy full SHA for f3c9299
1 file changed
app.js
@@ -36,13 +36,13 @@ let corsOptions = {};
36
37
if (!Services.env.isProduction()) {
38
corsOptions = {
39
- origin: [process.env.FRONTEND_ADDRESS_DEV],
+ origin: [`http://${process.env.FRONTEND_ADDRESS_DEV}`],
40
credentials: true
41
};
42
} else {
43
// TODO: change this when necessary
44
45
- origin: [process.env.FRONTEND_ADDRESS_DEPLOY],
+ origin: [`https://${process.env.FRONTEND_ADDRESS_DEPLOY}`, `https://hackerapi.mchacks.ca`],
46
47
48
}
0 commit comments