Hello,
We are trying to leverage the Salesforce Streaming API to get updates to pages in real time. The way we want this to work is to have the page subscribe to a PushTopic on page load, then when the page receives a notification from the Streaming API, requery some of the page models to reflect the change in the data. This will all be done in JavaScript.
The issue we are running into is that when the page tries to subscribe to a PushTopic, we are getting the error “XMLHttpRequest cannot load https://c.na28.visual.force.com/cometd/24.0/. Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://skuid.na28.visual.force.com’ is therefore not allowed access. The response had HTTP status code 405.”
We looked into trying to make a CORS request between the different domains, but it is resulting in the same error.
Has anyone else tried using the Streaming API in this way? Is there a workaround to the cross-domain issues?
Question
Streaming API with Skuid
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.