Sorry that was a wrong question. I don't see any varargs in the method addCORSOrigin()

But then why is not working for Melanie? It seems like everything's in the right places re CORS...


On 7/6/12 3:57 PM, Alessandro Adamou wrote:
Yes I am calling addCORSOrigin() already, but should I also explicitly add the supported methods? Right now I am simply passing over the request headers in the PUT and DELETE methods, like this

addCORSOrigin(servletContext, rb, headers);

Should I instead do

// for the DELETE method
addCORSOrigin(servletContext, rb, headers, HttpMethod.DELETE);

and

// for the PUT method
addCORSOrigin(servletContext, rb, headers, HttpMethod.PUT);

best,
Alessandro



--
M.Sc. Alessandro Adamou

Alma Mater Studiorum - Università di Bologna
Department of Computer Science
Mura Anteo Zamboni 7, 40127 Bologna - Italy

Semantic Technology Laboratory (STLab)
Institute for Cognitive Science and Technology (ISTC)
National Research Council (CNR)
Via Nomentana 56, 00161 Rome - Italy


"I will give you everything, just don't demand anything."
(Ettore Petrolini, 1917)

Not sent from my iSnobTechDevice

Reply via email to