Skip to main content
Participant
Sep 6, 2024 11:26 AM UTC
Question

Multiple errors and warnings with Adobe Embed API in React

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.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participant
Oct 30, 2024 3:54 PM UTC

Just curious if you've had any resolution to this as we're getting the same thing, specifically the MobX errors.

Translate
nico_3346Author
Participant
Nov 4, 2024 8:19 AM UTC

Hi!

I am sorry, but we still struggle with the error messages. I still hope to get some response here because all error messages occure in files which are downloaded from the API.

Translate