Skip to content

Commit

Permalink
Disable CSP #yolo (#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkberg authored Jun 28, 2023
1 parent 4d7839e commit 84ad26a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/createServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ module.exports = async (app, opts = {}) => {
}

if (!dev) {
server.use(helmet())
server.use(
helmet({
contentSecurityPolicy: false,
})
)
}

server.use(compression())
Expand Down

0 comments on commit 84ad26a

Please sign in to comment.