Skip to content

Fix for #65#68

Merged
RubaXa merged 1 commit into
mailru:devfrom
wingedfox:master
Feb 12, 2013
Merged

Fix for #65#68
RubaXa merged 1 commit into
mailru:devfrom
wingedfox:master

Conversation

@wingedfox

Copy link
Copy Markdown

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

2 participants