egnyte / egnyte-js-sdk

Javascript SDK to work with Egnyte Public APIs
15 stars 16 forks source link

Openpicker within iframe #6

Open mounika-mudda opened 6 years ago

mounika-mudda commented 6 years ago

We are using the SDK to get the file lists within a iframe. We are getting a error message,

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://abc.com') does not match the recipient window's origin ('https://xyz.com').

Is there any way we can pass origin when calling openPicker ?

naugtur commented 6 years ago

I'm surprised it's falling back to postMessage. Are you running it on IE8/9 ? If I recall correctly, postMessage is used in SDK solely as a workaround for cross-origin access in old IEs

Is anything affected beyond just the error showing in the console?

Please share your browser details and, if possible, a minimal html page that reproduces the issue.