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?
Have you seen this post?
Real Time Dashboards with Skuid
This is an alternative approach that can get you updates in near real-time (the threshold is configurable by you), does not use the Streaming API, and thereby is not subject to nor consumes any Salesforce Streaming API calls.
We have decided that the Streaming API is the way to go for what we want. Do you have any experience using it or do you know of any resources that may help?