Skip to content

Commit

Permalink
refactor: Enhance server security and test tolerance
Browse files Browse the repository at this point in the history
- Updated security settings in server index by modifying helmet's parameters.
- Enhanced cross-origin resource handling with modifications in helmet's settings.
  • Loading branch information
ITJesse committed Nov 13, 2023
1 parent fda5d18 commit 5739543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (config.sentryDsn) {
app.use(Sentry.Handlers.tracingHandler())
}

app.use(helmet({ contentSecurityPolicy: false }))
app.use(helmet({ crossOriginResourcePolicy: false }))
app.use(
morgan('dev', {
...(config.log.accessLog === 'stdout'
Expand Down

0 comments on commit 5739543

Please sign in to comment.