CORS with chrome 50.0.2661.86 in node
<p>I m having an issue with, i think, last update of chrome in Mac. In previous versions of chrome it works fine, and actually with safari and firefox works fine too...</p>

<p>I  m developing a node.js app with CORS, i have implemented this way:</p>

<pre><code>app.use(function (req, res, next) {

    res.setHeader('Access-Control-Allow-Origin', '*');

    res.setHeader('Access-Control-Allow-Methods', 'GET,POST,HEAD,OPTIONS,PUT,PATCH,DELETE');

    res.setHeader('Access-Control-Allow-Headers', 'X-Requested-With, X-HTTP-Method-Override, Accept, Content-Type, Authorization');

    res.setHeader('Access-Control-Allow-Credentials', true);

    next();
});
</code></pre>

<p>I m working with Ember, and the request is saving an object which generates a "normal" PATCH request :)</p>

<pre><code>PATCH http://localhost:3000/challenges/id
</code></pre>

<p>But, i guess since last update of chrome (50.0.2661.86), when i want to do a PATCH it returns me an error:</p>

<blockquote>
  <p>Method PATCH is not allowed by Access-Control-Allow-Methods in
  preflight response</p>
</blockquote>

<p>Do you have any idea what is wrong here?</p>

<p>Thanks in advance</p>