1
0
Fork 0

potential fix for login not working on production

This commit is contained in:
Kim, Jimin 2021-09-13 17:45:16 +09:00
parent f6301aa4af
commit cebe435fb2

View file

@ -34,7 +34,10 @@ if (process.env.FUNCTIONS_EMULATOR !== "true") {
}
app.use(
cors({ origin: ["https://llama.developomp.com", "http://localhost:5000"] })
cors({
origin: ["https://llama.developomp.com", "http://localhost:5000"],
credentials: true,
})
)
app.use(session(sessionOption))
app.use(passport.initialize())