I am trying to get started with the Javascriptthe Javascript SDK. I am developing on a web server on my local machine. I get a channelUrl
-related error when calling SE.init
.
My code:
SE.init({
clientId: 12345,
key: 'my key',
channelUrl: 'http://localhost:8000/blank',
complete: function (data) { console.log(data) }
})
I receive the error message:
Uncaught channelUrl must be under the current domain
The minified source seems to indicate that the channelUrlchannelUrl
parameter should match window.location.host
, which in my case is localhost:8000
.
I have also unsuccessfully tried localhost:8000/blank
and localhost:8000
.
What value should I use for the channelUrl
parameter?