fix: trust proxy for session cookies
This commit is contained in:
@@ -6,6 +6,8 @@ import { AppModule } from './app.module';
|
|||||||
async function bootstrap() {
|
async function bootstrap() {
|
||||||
const app = await NestFactory.create(AppModule);
|
const app = await NestFactory.create(AppModule);
|
||||||
|
|
||||||
|
app.set('trust proxy', 1);
|
||||||
|
|
||||||
app.use(
|
app.use(
|
||||||
session({
|
session({
|
||||||
secret: process.env.SESSION_SECRET || 'change-me',
|
secret: process.env.SESSION_SECRET || 'change-me',
|
||||||
|
|||||||
Reference in New Issue
Block a user