Discussion:
Access-Control-Allow-Origin
Florian Schaetz
2013-07-24 13:29:37 UTC
Permalink
Hello,

I'm trying to get some ajax request to work on a Geronimo 2.2.1 Webservice, but it seems like I have to somehow get the Access-Control-Allow-Origin header set to * on the server. Could anyone help me out here? Otherwise it seems, that Ajax2 does not recognize the Request-Type...

Regards,

Flo
Ivan
2013-07-31 01:23:29 UTC
Permalink
Hi,

Not sure what web services programming model you are using in Geronimo
2.2.1, guess JAX-WS ? If does, you may inject a WebServiceContext in your
endpoint and read/write the headers with
WebServiceContext.getMessageContext.

Hope it helps.

Thanks.
Hello,****
** **
I’m trying to get some ajax request to work on a Geronimo 2.2.1
Webservice, but it seems like I have to somehow get the
Access-Control-Allow-Origin header set to * on the server. Could anyone
help me out here? Otherwise it seems, that Ajax2 does not recognize the
Request-Type…****
** **
Regards,****
** **
Flo****
** **
--
Ivan
Loading...