Fix for #65 #68

merged 1 commit into from Feb 12, 2013


None yet

2 participants


Added "Content-Type" header

Example of server-side response for preflight cors request

response.setHeader("Access-Control-Allow-Origin", "*");
if ("options".equals(req.getMethod().toLowerCase())) {
    response.addHeader("Access-Control-Request-Method", "POST");
    response.addHeader("Access-Control-Allow-Headers", "Content-Range, X-Requested-With, Content-Disposition, Content-Type");

    return null;
@RubaXa RubaXa merged commit fba1d01 into mailru:dev Feb 12, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment