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"); returnnull}

RubaXa added a commit that referenced this pull request Feb 12, 2013
@RubaXaRubaXa merged commit fba1d01 into mailru:devFeb 12, 2013
Sign up for freeto 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

@wingedfox@RubaXa