1
0
Fork 0

fixed previous commit (fix not applying in production)

This commit is contained in:
Kim, Jimin 2021-09-13 12:06:18 +09:00
parent 1bbdce8080
commit a21234e6c4

View file

@ -28,7 +28,7 @@ const sessionOption: SessionOptions = {
const app = express()
if (process.env.FUNCTIONS_EMULATOR === "true") {
if (process.env.FUNCTIONS_EMULATOR !== "true") {
app.set("trust proxy", 1)
sessionOption.cookie = { secure: true }
}