You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
Hello, I am trying to add a bull monitor to my existing Express app, but when I try to hit http://localhost:3000/monitor it gives me the unable to find route error. Here is my setup, please guide me on what the issue may be.
express.ts
const app = express();
app.use([
helmet(), => this middleware gave the issue...
cors()
]
);
monitor.init().then(() => {
app.use('/monitor', monitor.router);
});
app.use('/', mainRoutes);
export default app;
main.ts
import http from 'http';
import app from './express';
const server = http.createServer(app);
server.listen(3000);
The text was updated successfully, but these errors were encountered:
I just figured out it is because of the helmet middleware
Refused to load the script 'https://cdn.jsdelivr.net/npm/@bull-monitor/[email protected]/build/main.js' because it violates the following Content Security Policy directive: "script-src 'self'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
Hello, I am trying to add a bull monitor to my existing Express app, but when I try to hit
http://localhost:3000/monitor
it gives me the unable to find route error. Here is my setup, please guide me on what the issue may be.express.ts
main.ts
The text was updated successfully, but these errors were encountered: