Invalid character in header content ["Content-Security-Policy"]
Describe the bug
Hi, I am trying to run npx netlify serve and I am running into the following issue:
`TypeError [ERR_INVALID_CHAR]: Invalid character in header content ["Content-Security-Policy"]
at ServerResponse.setHeader (node:_http_outgoing:706:3)
at file:///Users/andrea.dellacorte/Documents/Github/techinterview.coach/node_modules/netlify-cli/dist/utils/proxy.js:455:21
at Array.forEach (
System: OS: macOS 14.4.1 CPU: (8) arm64 Apple M1 Binaries: Node: 21.7.2 - /opt/homebrew/bin/node npm: 10.5.1 - /opt/homebrew/bin/npm Browsers: Chrome: 123.0.6312.107 Safari: 17.4.1`
Steps to reproduce
- Run
npx netlify serve - Wait for the console to fail
Configuration
No response
Environment
System:
OS: macOS 14.4.1
CPU: (8) arm64 Apple M1
Memory: 148.27 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 21.7.2 - /opt/homebrew/bin/node
npm: 10.5.1 - /opt/homebrew/bin/npm
npmPackages:
netlify-cli: ^17.21.2 => 17.21.2