소스 검색

Try more cookie fix

ghorsington 3 년 전
부모
커밋
f812851e5b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      web/src/server.ts

+ 1 - 1
web/src/server.ts

@@ -34,6 +34,7 @@ const createSapperServer = async (): Promise<Express> => {
 
     const app = express();
 
+    app.enable("trust proxy");
     app.use(express.json());
     app.use(
         session({
@@ -49,7 +50,6 @@ const createSapperServer = async (): Promise<Express> => {
             }),
         }),
     );
-    app.set("trust proxy", true);
 
     return app;
 };