documentation/content/administration/install
Julien Castiaux da20d2f5f8 [FIX] deploy: set Content-Security-Policy on static
The Content-Security-Policy[^1] http header was only set on the response
generated by controllers but it was missing from the `/<module>/static/`
route.

It is not strictly necessary to set that header on the responses comming
from that routes as it is not possible to add new static files or edit
existing ones via the interface (not even as admin). Only the developers
and system administrator can access those files.

It is also worth mentionning that using the Odoo internal web server to
deliver static files is suboptimal. Outside of a dev environment, those
files will typically be delivered via a web server[^2] and sysadmins
should configure their web server to set the CSP header on static images.

[^1]: https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP
[^2]: https://www.odoo.com/documentation/master/administration/install/deploy.html#serving-static-files-and-attachments

closes odoo/documentation#6953

X-original-commit: f3f44fe5f2
Related: odoo/odoo#146591
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
2023-12-18 23:32:00 +00:00
..
cdn [IMP] Website: rewrite-keycdn-doc 2023-03-13 20:47:58 +01:00
cdn.rst [IMP] Website: rewrite-keycdn-doc 2023-03-13 20:47:58 +01:00
deploy.rst [FIX] deploy: set Content-Security-Policy on static 2023-12-18 23:32:00 +00:00
email_gateway.rst [FIX] *: RST cleanup 2023-02-15 16:03:06 +01:00
online.rst [REF] install: move intro to main install page and split by install type 2023-08-19 07:58:45 +02:00
packages.rst [FIX] administration/install: wkhtmltopdf 0.12.6 2023-12-06 17:27:45 +00:00
source.rst [FIX] administration/install: wkhtmltopdf 0.12.6 2023-12-06 17:27:45 +00:00