1
customHeaders: [{
  match: 'context.html', => customContextFile
  name: 'Content-Security-Policy',
  value: 'default-src 'none'; connect-src 'self';'
}]

This customHeaders is getting added to all the components while testing and I want to exclude this customHeaders for selected components, I don't want to exclude the components from karma.conf.js.

I need to exclude this CSP headers for selected components, without removing them from testing.

Any suggestions would be appreciated.

RS17
  • 773
  • 1
  • 9
  • 23

0 Answers0