import { session, OnResponseStartedDetails } from "electron"

export const setContentSecurityPolicy: () => void = () => {
  session.defaultSession.webRequest.onHeadersReceived(
    (details: OnResponseStartedDetails, callback: Function) => {
      callback({ responseHeaders: `default-src 'none'` })
    },
  )
}

import { session, OnResponseStartedDetails } from "electron"

export const setContentSecurityPolicy = (): void => {
  session.defaultSession.webRequest.onHeadersReceived(
    (details: OnResponseStartedDetails, callback: Function): void => {
      callback({ responseHeaders: `default-src 'none'` })
    },
  )
}

Fix linting errors in ContentSecurityPolicy
Fix linting errors in ContentSecurityPolicy
