We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 45f2a84 + 6c55014 commit 5acf3a2Copy full SHA for 5acf3a2
1 file changed
backend/src/app.ts
@@ -19,6 +19,9 @@ export function createJobsApiApp() {
19
app.use(securityHeaders);
20
app.use(cors(corsOptions));
21
22
+ //Confia no proxy reverso (nginx) para lidar com HTTPS e IPs reais dos clientes
23
+ app.set("trust proxy", 1);
24
+
25
app.use("/api/auth", withSession, authRoutes);
26
app.use("/api/users", withSession, requireAuth, userRoutes);
27
app.use("/api/jobs", withSession, requireAuth, jobsRoutes);
0 commit comments