Skip to content

Conversation

@wingedfox
Copy link

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 added a commit that referenced this pull request Feb 12, 2013
@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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants