Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-matthewb committed Jan 8, 2024
1 parent f7d9c95 commit 62339c3
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@

/** example usage,
very strict, disallows 'external' websites, disallows unsafe-inline, but only reports violations (does not enforce)
NOTE: as of Jan 2024, browsers do not correctly the MDN recommended "report-to" directive. Furthermore, including both
report-uri and report-to directives breaks Chrome. So the current recommendation is to use the 'deprecated" report-uri
directive.
Example 1 : very strict, disallows 'external' websites, disallows unsafe-inline, but only reports violations (does not enforce)
good for test automation!
<pre>
Expand All @@ -38,7 +42,6 @@
base-uri 'self' ;
upgrade-insecure-requests ;
frame-ancestors 'self' ;
report-to /labkey/admin-contentsecuritypolicyreport.api ;
report-uri /labkey/admin-contentsecuritypolicyreport.api ;
</param-value>
</init-param>
Expand All @@ -53,7 +56,7 @@
</filter-mapping>
</pre>
less strict but enforces directives, (NOTE: unsafe-inline is still required for many modules)
Example 2 : less strict but enforces directives, (NOTE: unsafe-inline is still required for many modules)
<pre>
<filter>
Expand All @@ -71,7 +74,6 @@
base-uri 'self' ;
upgrade-insecure-requests ;
frame-ancestors 'self' ;
report-to /labkey/admin-contentsecuritypolicyreport.api ;
report-uri /labkey/admin-contentsecuritypolicyreport.api ;
</param-value>
</init-param>
Expand Down

0 comments on commit 62339c3

Please sign in to comment.