You can read about CORS here: https://en.wikipedia.org/wiki/Cross-origin_resource_sharing <https://en.wikipedia.org/wiki/Cross-origin_resource_sharing>
Regards, Neil > On 9 Nov 2016, at 11:51, <[email protected]> > <[email protected]> wrote: > > Hi All, > > I am trying to retrieve an http response (json string) from an osgi app > implementing enroute rest api. > > When i write a client html app and invoke the osgi app, it gets invoked and > returns the string. But I get a warning as below and I am unable to see the > text in my browser page. > > Cross-Origin Request Blocked: The Same Origin Policy disallows reading the > remote resource at http://127.0.0.1:8080/rest/execute/app/foo > <http://127.0.0.1:8080/rest/execute/app/foo> (Reason: CORS header > 'Access-Control-Allow-Origin' missing). > > Does this have anything to do with the http response header in the enroute > rest ? Would appreciate any quick solution/pointers.. > > Thanks, > Manoj > The information contained in this electronic message and any attachments to > this message are intended for the exclusive use of the addressee(s) and may > contain proprietary, confidential or privileged information. If you are not > the intended recipient, you should not disseminate, distribute or copy this > e-mail. Please notify the sender immediately and destroy all copies of this > message and any attachments. WARNING: Computer viruses can be transmitted via > email. The recipient should check this email and any attachments for the > presence of viruses. The company accepts no liability for any damage caused > by any virus transmitted by this email. www.wipro.com <http://www.wipro.com/> > _______________________________________________ > OSGi Developer Mail List > [email protected] <mailto:[email protected]> > https://mail.osgi.org/mailman/listinfo/osgi-dev > <https://mail.osgi.org/mailman/listinfo/osgi-dev>
_______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
