ethanresnick / json-api-example

An example API created with my JSON-API library (http://github.com/ethanresnick/json-api)
31 stars 15 forks source link

Allow cross-origin OPTIONS requests #14

Open carlbennettnz opened 6 years ago

carlbennettnz commented 6 years ago

The Access-Control-Allow-Origin header was already being set, but this adds Access-Control-Allow-Methods and Access-Control-Allow-Headers headers and prevents OPTIONS requests from 404ing.

carlbennettnz commented 6 years ago

Whoops, looks like a dup of #13