Question
Reg CSP for 302 and 301s
Hi Folks,
Currently we have CSPs implemented for all 200s but we need it for all 302s and 301s redirections also to achieve full compliance for Content Security Policys.
I have included below line (marked in BOLD) in the site_cloud_publish.vhost file.
Header set Content-Security-Policy "upgrade-insecure-requests; frame-ancestors 'none'; script-src blob: 'unsafe-inline' 'unsafe-eval' 'self' https://xyz.xyz.com https object-src 'none'"Header always setifempty Content-Security-Policy "upgrade-insecure-requests; default-src 'none'; frame-ancestors 'none'; base-uri 'self';" "expr=%{RESPONSE_STATUS} =~ /^30[1278]$/"<If "-n %{QUERY_STRING}">
but while deploying the dispatcher module, i am getting warning and deployment is failing.
Could you help me in thi?
Thanks in advance.
Regards,
Shikha