[Cloudflare pages] Header auto join with ","
Hello everyone,
https://developers.cloudflare.com/pages/configuration/headers/
I config the header but it auto joins with the "," => incorrect for CSP header
Eg:
_header
Content-Security-Policy: frame-ancestors 'none';
Content-Security-Policy: default-src 'none';
=> Expected: Content-Security-Policy: frame-ancestors 'none'; default-src 'none';
=> Actual: Content-Security-Policy: frame-ancestors 'none';, default-src 'none';
Do we have any way to prevent the "," character?
Many thanks.
Cloudflare Docs
Headers | Cloudflare Pages docs
To attach headers to Cloudflare Pages responses, create a _headers plain text file in the output folder of your project. It is usually the folder that contains the deploy-ready HTML files and assets generated by the build, such as favicons. Changes to headers will be updated to your website at build time. Make sure you commit and push the file t...
0 Replies