Configures the Access-Control-Allow-Credentials CORS header (#5221)

This commit is contained in:
Kamil Kisiela 2024-07-15 09:12:07 +02:00 committed by GitHub
parent 10fbce4667
commit 210e5782a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,9 @@ async function main() {
});
}
await server.register(cors, {});
await server.register(cors, {
credentials: true,
});
server.get('/api/health', (_req, res) => {
return res.status(200).send('OK');