@@ -310,20 +310,24 @@ to all responses by setting the `HTTP_HEADER` system parameter.
310310
311311The following example, that should be adapted to specific needs, does the following:
312312
313- - The CSP policy is tailored to Simplicité's working
314- - STS should be set, 1year is generally considered a good value
315- - iframes limited to those of same origin
316- - deactivated XSS protection (a CORS policy is a better approach and ** must be implemented** )
317- - specified Referrer-Policy
313+ - The CSP policy can be tailored to Simplicité's internal needs.
314+ However ` https://tile.openstreetmap.org ` should be added in the ` img-src ` section when using OpenStreetMaps maps
315+ and ` https://platform.simplicite.io ` should be added in the ` connect-src ` section for up-to-date version check.
316+ - STS should be set, 1 year is generally considered a good value
317+ - iframes limited to those of same origin (only needed if some custom components uses iframes, Simplicité itself does not use them)
318+ - deactivated XSS protection because a proper CORS policy is a better approach and thus ** must be implemented**
319+ - specified referrer policy
320+ - specified permissions policy
318321
319322``` json
320323{
321- "Content-Security-Policy" : " default-src 'self'; img-src 'self' data:; script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:; style-src 'self' 'unsafe-inline'; font-src 'self' data:" ,
324+ "Content-Security-Policy" : " default-src 'self'; img-src 'self' data: blob: ; script-src 'self' 'unsafe-inline' 'unsafe-eval' blob:; style-src 'self' 'unsafe-inline'; font-src 'self' data:; connect-src 'self' " ,
322325 "Strict-Transport-Security" : " max-age=31536000" ,
323326 "X-Content-Type-Options" : " nosniff" ,
324327 "X-Frame-Options" : " SAMEORIGIN" ,
325328 "X-XSS-Protection" : " 0" ,
326- "Referrer-Policy" : " strict-origin-when-cross-origin"
329+ "Referrer-Policy" : " strict-origin-when-cross-origin" ,
330+ "Permissions-Policy" : " unload=(self)"
327331}
328332```
329333
0 commit comments