Skip to content

Commit 8083fd5

Browse files
committed
Update coolwsd.xml.in add concrete link to Content-Security-Policy
Adding a concrete hollow example. Signed-off-by: Méven Car <[email protected]> Change-Id: I95f186820737c29bb2aa177db3bf07d40188c839
1 parent cf59091 commit 8083fd5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

coolwsd.xml.in

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,14 @@
198198
<host desc="Ditto, but as IPv4-mapped IPv6 addresses">::ffff:10\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}</host>
199199
<host desc="Localhost access by name">localhost</host>
200200
</lok_allow>
201-
<content_security_policy desc="Customize the CSP header by specifying one or more policy-directive, separated by semicolons. See w3.org/TR/CSP2"></content_security_policy>
201+
<content_security_policy desc="Customize the CSP header by specifying one or more policy-directive, separated by semicolons. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy">
202+
<!-- example:
203+
connect-src 'self' collabora-online-server.local;
204+
frame-src 'self' server-to-inject-iframe-from.xyz;
205+
connect-src 'self' server-to-inject-js-from.io;
206+
frame-ancestors server-embedding-collabora-online-iframe
207+
-->
208+
</content_security_policy>
202209
<frame_ancestors desc="OBSOLETE: Use content_security_policy. Specify who is allowed to embed the Collabora Online iframe (coolwsd and WOPI host are always allowed). Separate multiple hosts by space."></frame_ancestors>
203210
<connection_timeout_secs desc="Specifies the connection, send, recv timeout in seconds for connections initiated by coolwsd (such as WOPI connections)." type="int" default="30">30</connection_timeout_secs>
204211

0 commit comments

Comments
 (0)