From f9d48375676f374f828c7a8e3e3b658928f3827c Mon Sep 17 00:00:00 2001 From: Dmitry Verkhoturov Date: Sun, 4 Aug 2024 23:00:16 +0100 Subject: [PATCH] Add Content-Security-Policy and Permissions-Policy headers `Content-Security-Policy` now restricts resource loading and execution to enhance security: - `default-src 'none'`: Disallow all resource loading by default. - `base-uri 'none'`: Prevents the use of `` tag to change the base URL for relative URLs. - `form-action 'none'`: Disallows form submissions. - `connect-src 'self'`: Restricts the origins that can be connected to (via XHR, WebSockets, etc.) to the same origin. - `frame-src 'self'`: Restricts the origins that can be embedded using `` and `