Explorar o código

Try more cookie fix

ghorsington %!s(int64=3) %!d(string=hai) anos
pai
achega
f812851e5b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
 };