Oracle Application Express (MOSC)

MOSC Banner

Issue in setting the secured Content Security Policy Headers in Oracle Apex Applications

edited Mar 26, 2024 8:26AM in Oracle Application Express (MOSC) 2 commentsAnswered

Oracle Application Express (APEX)

version 23.1

Issue details:

We are trying to implement Content Security Policy in our Apex application (at Apex 23.1) but when we set the content security policy as "default-src 'self';". This block all the in-line script generated by Apex engine internally unless we add 'unsafe-inline' policy (which is not really secure). 

Similarly Apex dynamic actions as well auto generating javascript which rendered in the page html as an inline JavaScript under <script> tag.   Since Apex is internally generating script dynamically, this will be tricky to generate nonce (too many) or hashes to secure the inline script or css.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center