fix(sim): allow jsdelivr connect and silence favicon 404
This commit is contained in:
@@ -35,6 +35,10 @@ app.get('/', (_req, res) => {
|
||||
res.send('API is running');
|
||||
});
|
||||
|
||||
app.get('/favicon.ico', (_req, res) => {
|
||||
res.status(204).end();
|
||||
});
|
||||
|
||||
app.get('/openapi.json', (_req, res) => {
|
||||
res.json(openApiDocument);
|
||||
});
|
||||
@@ -48,6 +52,7 @@ app.use(
|
||||
contentSecurityPolicy: {
|
||||
directives: {
|
||||
scriptSrc: ["'self'", 'https://cdn.jsdelivr.net'],
|
||||
connectSrc: ["'self'", 'https://cdn.jsdelivr.net'],
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user