Good Afternoon, all my application integrates with Opentext Content Server (OTCS) REST API. One of the use case is my application will call the OTCS REST API to download the file content (binary content). The file content is then converted into Base64 Content and stored in a variable, Base64Content
This variable is used the src attribute of iframe for the display of .txt files/ .pdf files. The formats of my src are the following:
After applying Content Security Policies through Service Center, I am unable to display the file content on my iframe and have the folowing error messages:
Only by disabling the Content Security Policies that am able to display the file content on my iframe.
May I know if anyone has encountered and experienced any similar issue and knows how to resolve it?
yes, do not use iFrame.
Thanks, thats very helpful
We experience the same when using IFrame for payment gateway Stripe.
It does not work for the Stripe page, but it works for other some web pages when we set the CSP.
So we avoid to use IFrame in the project.
regards
Add data: to the child-src directive in the CSP settings and try again.