Test/prevent server block on rate limit (#432)

This commit is contained in:
ZaydSkaff
2025-06-24 14:56:02 +03:00
committed by GitHub
parent 147cf0b582
commit e58d2d4831
2 changed files with 7 additions and 13 deletions

View File

@ -21,18 +21,6 @@ async function bootstrap() {
app.use(new RequestContextMiddleware().use);
app.use((req, res, next) => {
console.log(
'Real IP:',
req.ip,
req.headers['x-forwarded-for'],
req.connection.remoteAddress,
);
next();
});
// app.getHttpAdapter().getInstance().set('trust proxy', 1);
app.use(
helmet({
contentSecurityPolicy: false,