Skip to main content
added 1 character in body
Source Link
Glorfindel
  • 6.9k
  • 3
  • 22
  • 49

After looking at the API code in JavaScript, it seems that this error is thrown if the channelUrl doesntdoesn't match the URL you're currently at.

To get round this, just set the channelUrl to a dynamic value that updates for every window

{
  "channelUrl": window.location.protocol + "//" + window.location.host
}

If you run this in the console of your browser you'll see that it logs the base URL of the website you're currently on, and the error will no longer be thrown.

Update, this just delays the problem unfortunately. When it comes to authenticating the login it fails because of an unexpected domain on proxy url.

After looking at the API code in JavaScript, it seems that this error is thrown if the channelUrl doesnt match the URL you're currently at.

To get round this, just set the channelUrl to a dynamic value that updates for every window

{
  "channelUrl": window.location.protocol + "//" + window.location.host
}

If you run this in the console of your browser you'll see that it logs the base URL of the website you're currently on, and the error will no longer be thrown.

Update, this just delays the problem unfortunately. When it comes to authenticating the login it fails because of an unexpected domain on proxy url.

After looking at the API code in JavaScript, it seems that this error is thrown if the channelUrl doesn't match the URL you're currently at.

To get round this, just set the channelUrl to a dynamic value that updates for every window

{
  "channelUrl": window.location.protocol + "//" + window.location.host
}

If you run this in the console of your browser you'll see that it logs the base URL of the website you're currently on, and the error will no longer be thrown.

Update, this just delays the problem unfortunately. When it comes to authenticating the login it fails because of an unexpected domain on proxy url.

Source Link

After looking at the API code in JavaScript, it seems that this error is thrown if the channelUrl doesnt match the URL you're currently at.

To get round this, just set the channelUrl to a dynamic value that updates for every window

{
  "channelUrl": window.location.protocol + "//" + window.location.host
}

If you run this in the console of your browser you'll see that it logs the base URL of the website you're currently on, and the error will no longer be thrown.

Update, this just delays the problem unfortunately. When it comes to authenticating the login it fails because of an unexpected domain on proxy url.