documentation/content
Julien Castiaux 3199671b4e [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#6949

X-original-commit: f3f44fe5f2
Related: odoo/odoo#146582
Signed-off-by: Julien Castiaux (juc) <juc@odoo.com>
2023-12-18 19:59:23 +00:00
..
administration [FIX] deploy: set Content-Security-Policy on static 2023-12-18 19:59:23 +00:00
applications [IMP] sales: updated entire invoicing based on milestones doc 2023-12-17 19:04:07 +00:00
contributing [IMP] Contributing: typo seealso admonition 2023-11-27 18:26:04 +00:00
developer [IMP] developer/reference/cli: --proxy-mode 2023-12-03 08:27:19 +00:00
legal [FIX] legal: broken links to the support page 2023-09-26 05:58:12 +00:00
administration.rst [IMP] upgrade: create new "upgrade" section in "install and maintain" 2021-10-15 11:45:07 +00:00
applications.rst [ADD] attendances: hr and attendances categories + hardware page 2023-03-29 21:45:52 +02:00
contributing.rst [IMP] contributing: list the ways to contribute to Odoo 2022-12-08 15:51:24 +01:00
developer.rst [MOV] developer/cli: move "Command-line interface (CLI)" to the reference dir 2023-02-23 16:09:00 +01:00
index.rst [IMP] *: introduce tables of contents in top-level app pages 2021-07-07 14:56:38 +02:00
last_build.rst [FIX] *: RST cleanup 2023-02-15 16:03:06 +01:00
legal.rst [IMP] documentation: legal page design 2022-12-08 12:31:09 +01:00