Idea Summary
Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate
certain types of attacks, including cross-site scripting (XSS) and data injection attacks. These
attacks are used for everything from data theft to site defacement to distribution of malware. In the latest APEX version (24.2) the CSP can be set in the “Application properties / Security / Browser Security / HTTP Response Headers”. However the setting require advanced knowhow and is set for all pages.
Use Case
Most of the APEX applications are using resources only from the local server. Most of the security assessments of APEX applications are revealing the week configuration of the CSP. The CSP is often set more relaxed to prevent issues with APEX engine when loading resources (css, images, scripts). It would help if APEX will offer a default safe CSP configuration and all required APEX resources (image files) will match that configuration.
Preferred Solution (Optional)
Offer a dedicated setting for Content Security Policy set by default to all pages. The Page setting should offer the option to overwrite the default setting if required, for instance when a particular page uses some fonts or scripts from another machine.