Skip to main content
edited tags
Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64
Notice removed Authoritative reference needed by kamesh
Bounty Ended with Brock Adams's answer chosen by kamesh
added 2 characters in body
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64

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?

I am trying to get started with the 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 channelUrl 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?

I am trying to get started with the 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 channelUrl 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?

Notice added Authoritative reference needed by kamesh
Bounty Started worth 50 reputation by kamesh
Source Link
joews
  • 149
  • 3

Javascript SDK channelUrl for local development

I am trying to get started with the 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 channelUrl 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?