Skip to content

Commit

Permalink
fix server
Browse files Browse the repository at this point in the history
  • Loading branch information
tbenr committed Aug 30, 2022
1 parent e1e8680 commit 11057e8
Show file tree
Hide file tree
Showing 3 changed files with 973 additions and 13 deletions.
10 changes: 10 additions & 0 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ const app = express();

app.use(helmet())

app.use(
helmet.contentSecurityPolicy({
directives: {
defaultSrc: ["'self'"],
scriptSrc: ["'self'", "'unsafe-eval'"],
connectSrc: ["'*'"]
},
})
)

app.disable('x-powered-by');


Expand Down
Loading

0 comments on commit 11057e8

Please sign in to comment.