• Join - It's Free

Authentication/Authorization using Geni JavaScript SDK

Started by Private User on Monday, November 17, 2014
Problem with this page?

Participants:

Related Projects:

Showing all 3 posts

I have tried to login to Geni using https://github.com/geni/geni-js-sdk/blob/master/samples/first_name_... ( Geni's JavaScript SDK) and I got error:
"Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null').".
Do you have any idea why I am getting this error?

Likely nothing to do with Geni. This is a problem with testing out Javascript in general: You can't just load it from a file, you have to load it from a webserver.

Run a webserver at "localhost", and load the page from there, not from a file, and it *may* work better.

(technically: each "file:" is its own origin, and certain operations need to have the same origin for the caller and the callee.)

Thanks for taking the time to answer the question Tveit.

Showing all 3 posts

Create a free account or login to participate in this discussion