Permission denied to access property


I have never encountered this issue while working with other API’s, and I could not find a solution by Googling, so I thought I should post here.

A div should be populated with text supplied from Squidex. The API call is successful, and the JSON can be printed to console.

However, the text can not be added to the div element. The complete error message is “SecurityError: Permission denied to access property “data” on cross-origin object”

Is there perhaps some kind of flag that I have forgot to set? I hope anyone who has previously encountered this problem can share their experience!

I have never seen it either.

SOLVED: Because there was an iframe on another part of the website, information accessed through the API could not be used.

Now I just got to figure out if there is any way for an API and an iframe to coexist on the same webpage.

1 Like