[v5] CSP config for 'self' is broken? #3233
-
Hello! Here is the config: export const csp: ShieldConfig['csp'] = {
enabled: true,
directives: {
defaultSrc: ['self']
}
} From my understanding of CSP, this should allow all resources to load as long as it's from the same origin. Looking at the network tab in my dev tools, I can see the request header contains this:
Looking at the docs for CSP,
If I change to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yup. Docs needs to be fixed here. Can you please create a PR for the same? |
Beta Was this translation helpful? Give feedback.
Yup. Docs needs to be fixed here. Can you please create a PR for the same?