Skip to content

Commit

Permalink
fix(headers): add connect-src csp for http
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Sep 27, 2022
1 parent d5e6aff commit f61f321
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nuxt/server/middleware/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { STACK_DOMAIN } from '~/plugins/util/constants'
const csp: Record<string, Array<string>> = {
'base-uri': ["'none'"], // Mozilla Observatory.
'connect-src': [
`http://localhost:24678/_nuxt/`, // Nuxt development
`ws://localhost:24678/_nuxt/`, // Nuxt development
`https://${STACK_DOMAIN}/cdn-cgi/rum`, // Cloudflare real user management (browser insights)
`https://postgraphile.${STACK_DOMAIN}`,
Expand Down

0 comments on commit f61f321

Please sign in to comment.