Hi, we are using pages and headers file per env but now we are struggling with line length because o
Hi, we are using pages and headers file per env but now we are struggling with line length because of CSP policies. We have tried to move CSP to new lines to bypass limit of 1000 characters but when we do that Cloudflare fail to merge them in correct CSP format.
There is issue about that and we have the same result as in this post
https://community.cloudflare.com/t/cloudflare-pages-header-file-line-limit/387052/12
Anyone encountered this issue and know how to solve that?
There is issue about that and we have the same result as in this post
https://community.cloudflare.com/t/cloudflare-pages-header-file-line-limit/387052/12
Anyone encountered this issue and know how to solve that?
Cloudflare Community
Hi @Cyb3r-Jak3 this method doesnt work for me as for somereason the produced header CSP have wrong format default-src 'none';, script-src 'report-sample' you can see an additonal comma, after the ; and this make browser miss parts of CSP. when you seperate a policy line how you end the line with: - default-src 'none'; - default-src 'none' - ...







