Multiple errors and warnings with Adobe Embed API in React
- September 6, 2024
- 1 reply
- 427 views
Hi!
We are planning to integrate the Adobe Embed API in our React application and for this I implemented a testcomponent based on the codeexample in the docs.
The viewer fullfilles our requirements and works. No it is time to get rid of all the warnings and errors in the browser console.
iframe.html:1
The Content-Security-Policy directive 'default-src' contains the keyword 'none' alongside with other source expressions. The keyword 'none' must be the only source expression in the directive value, otherwise it is ignored.
The Content-Security-Policy directive 'form-action' contains the keyword 'none' alongside with other source expressions. The keyword 'none' must be the only source expression in the directive value, otherwise it is ignored.
pageSelectors.js:22
[mobx.array] Attempt to read an array index (0) that is out of bounds (0). Please check length first. Out of bound indices will not be tracked by MobX
happens multiple times...
printHelper.html:1
The Content-Security-Policy directive 'worker-src' contains the keyword 'none' alongside with other source expressions. The keyword 'none' must be the only source expression in the directive value, otherwise it is ignored.
Please see the attached screenshot, too.
I searched for the error messages but was not able to find a solution for them. As I mention, the viewer is working but I appreciate all tipps how I can get rid of these.
