Skip to content

Commit

Permalink
chore: revert out-of-scope changes
Browse files Browse the repository at this point in the history
  • Loading branch information
justynoh committed Aug 16, 2023
1 parent ce04f02 commit 7ca931a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion __tests__/unit/backend/helpers/jest-db.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import MemoryDatabaseServer from '__tests__/setup/database'
import { ObjectID } from 'bson-ext'
import { ObjectID } from 'bson'
import mongoose from 'mongoose'
import { FormResponseMode } from 'shared/types'

Expand Down
8 changes: 2 additions & 6 deletions src/app/loaders/express/helmet.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { RequestHandler } from 'express'
import helmet, { HelmetOptions } from 'helmet'
import helmet from 'helmet'
import { ContentSecurityPolicyOptions } from 'helmet/dist/types/middlewares/content-security-policy'

import config from '../../config/config'
import { sentryConfig } from '../../config/features/sentry.config'

type ContentSecurityPolicyOptions = Exclude<
HelmetOptions['contentSecurityPolicy'],
boolean | undefined
>

const helmetMiddlewares = () => {
// Only add the "Strict-Transport-Security" header if request is https.
const hstsMiddleware: RequestHandler = (req, res, next) => {
Expand Down

0 comments on commit 7ca931a

Please sign in to comment.