Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

APEX and Content Security Policy - the need for unsafe-inline?

AndyHJan 25 2024

Web security scans of our application 'fail' because of the use of Content-Security-Policy and ‘unsafe-inline’ to support Javascript and CSS generated for the page, e.g. Dynamic Actions and Style attributes.

As far as I can see, there isn't much that a developer can do to fix this as the scripts/style attributes are generated by the APEX engine, e.g. I can't see how I would create a nonce or hash for each ‘inline’ item.

Is there a way of not using the CSP ‘unsafe-inline’ directive?

If not, is there a ‘caveat’ I can give to the security team explaining how APEX remains secure despite this directive?

Or… is this something that is being looked at for future APEX releases?

Comments
Post Details
Added on Jan 25 2024
4 comments
1,322 views