Note that there are some explanatory texts on larger screens.

plurals
  1. POX-Content-Security-Policy-Report-Only not working in Firefox 20
    primarykey
    data
    text
    <p>I have the following Content Security Policy defined:</p> <pre><code>X-Content-Security-Policy-Report-Only: default-src 'self'; report-uri /foo </code></pre> <p>If I change that to <code>X-Content-Security-Policy</code>, the policy gets enforced and the report is sent. However, when I set it to <code>Report-Only</code>, no policy warnings appear in the console and no report is sent.</p> <p>I'm aware of the bug where they don't support <code>unsafe-inline</code> and <code>unsafe-eval</code>, rather you have to use <code>options inline-script eval-script</code>, but I'm not using either on this page.</p> <p>I don't know if this has much to do with it, but the header is being sent as <code>X-Content-Security-Policy-Report-Only</code>, but Firebug translates it to <code>x-content-security-policy-report-only</code> - simply changing the case.</p> <p>Also, when supplying both an <code>X-Content-Security-Policy</code> and <code>X-Content-Security-Policy-Report-Only</code> as follows:</p> <pre><code>X-Content-Security-Policy: default-src 'self'; options inline-script; report-uri /csp-report.php x-content-security-policy-report-only: default-src 'self'; report-uri /csp-report.php </code></pre> <p>The console has a WARN level message:</p> <blockquote> <p>Report-only CSP policy will be ignored because there are other non-report-only CSP policies applied.</p> </blockquote> <p>So it's seeing the header, and instead of processing it and reporting but enforcing the other, it's dropping it altogether?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload