OpenFrame: Incoming message ignored due to origin mismatch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-14-2019 01:53 PM
When trying to use the OpenFrame API window messages are blocked due to origin when loading HTML from hosting location. What is required to whitelist my origin?
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2019 03:15 PM
add your host to `glide.ui.concourse.onmessage_enforce_same_origin_whitelist` property
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-26-2019 12:36 PM
If you are getting the following error in the browser console:
Incoming message ignored due to origin mismatch.
OpenFrame init failed.. Openframe init request timed out
initFailure @ app.html:20
(anonymous) @ openFrameAPI.min.js:3
setTimeout (async)
(anonymous) @ openFrameAPI.min.js:3
init @ openFrameAPI.min.js:3
init @ openFrameAPI.min.js:3
loadOpenFrame @ app.html:23
onclick @ app.html:28
This is because the origin of the Openframe needs to be "white-listed", and this is achieved by adding such origin in the following system property:
glide.ui.concourse.onmessage_enforce_same_origin_whitelist
For example, if the origin of the Openframe were to be https://localhost:8080/index.html, you should add https://localhost:8080.
Here are the instructions on how to setup system properties: https://docs.servicenow.com/bundle/london-platform-administration/page/administer/reference-pages/ta...
We were also struggling with this issue, and couldn't find any documentation related to it, maybe this answer helps someone else in the future. And it would be really good if such essential configuration is added to the Openframe configuration guide (or at least mentioned!): https://docs.servicenow.com/bundle/madrid-customer-service-management/page/product/customer-service-...