limit cors

This commit is contained in:
me 2025-03-14 10:57:47 +02:00
parent 4ae300efb5
commit 9c82e44cca

View File

@ -78,7 +78,13 @@ app.use(
}) })
); );
app.use(morgan('combined')); app.use(morgan('combined'));
app.use(cors());
const corsOptions = {
origin: ['https://alloca.space', 'https://www.alloca.space'],
optionsSuccessStatus: 200
};
app.use(cors(corsOptions));
// POST // POST
const limiter20 = RateLimit({ const limiter20 = RateLimit({