[aerogear-dev] AeroGear Push Server cartridge, Quickstart client, and CORS

Michi Oshima michi.oshima at gmail.com
Thu Mar 27 12:46:29 EDT 2014


Hi,

I'm currently looking into AeroGear Push Server (Simple with Unified).

For prototyping, I pieced together the following environment:

1. "AeroGear Push Server
0.10.0<https://www.openshift.com/quickstarts/aerogear-push-0x>"
cartridge running as an OpenShift application.
2. Git cloned aerogear-simplepush-unifiedpush-quickstart<https://github.com/aerogear/aerogear-simplepush-unifiedpush-quickstart>

I edited unifiedpush.js so it points to my OpenShift application.  Then I
open index.html in a browser and I get the following error:


   - XMLHttpRequest cannot load https://aerogear-****.
   rhcloud.com/8443/simplepush/info. No 'Access-Control-Allow-Origin'
   header is present on the requested resource. Origin '
   http://127.0.0.1:9000' is therefore not allowed access.

(OK, I got the error from when hosted the index.html on a web server
running locally.  But I get pretty much the same result from just opening
index.html from the file system.)

Does this mean that simple push server on my OpenShift application does not
support CORS?  Or, am I not doing something right?

Thanks,

Michi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140327/1f3c5d98/attachment.html 


More information about the aerogear-dev mailing list