Skip to content
Permalink
Browse files
fix: updates cors
  • Loading branch information
MantasMikal committed Feb 5, 2021
1 parent 77dd5df commit cb66f8c99f492a91a46a232678888d60d55b2b84
Showing 1 changed file with 2 additions and 2 deletions.
@@ -19,7 +19,7 @@ const config = cfg.get(mode);

app.use(
cors({
origin: [config.siteUrl, "localhost"],
origin: [config.siteUrl, "localhost", "http://fido2.app", "https://fido2.app", "fido2.app"],
credentials: true,
allowedHeaders: [
"Content-Type",
@@ -50,7 +50,7 @@ app.use(compression());

const MongoStore = connectMongo(session);
app.use(
session({
session({
secret: process.env.SESSION_SECRET,
resave: false,
store: new MongoStore({ mongooseConnection: dbConnection.connection }),

0 comments on commit cb66f8c

Please sign in to comment.