hagopj13 / node-express-boilerplate

A boilerplate for building production-ready RESTful APIs using Node.js, Express, and Mongoose
MIT License
6.99k stars 2.05k forks source link

Content Security Policy #186

Open MakeTotalSense opened 2 years ago

MakeTotalSense commented 2 years ago

Hello everyone,

I'm trying to make a swagger doc on my API. Unfortunately, when I try to execute the request from the interface, nothing happen and I got a console error message.

I think this is due to helmet parameters, though I can't figure it out.

I have crawled the internet to find something, but even when I specify app.use( helmet({ contentSecurityPolicy: false, }) ); I still got the error.

image