sosedoff / opentable

Unofficial OpenTable API
http://opentable.herokuapp.com/
Other
145 stars 39 forks source link

CORS not implemented #7

Closed gnomeontherun closed 9 years ago

gnomeontherun commented 9 years ago

Is it possible to implements CORS headers? It should only need one new header and it should be available put on all OPTIONS requests.

Access-Control-Allow-Origin: *

gnomeontherun commented 9 years ago

I'm not a ruby dev, but looking up how sinatra works something like this might do the trick.

options "/*" do
  headers["Access-Control-Allow-Origin"] = "*"
end
sosedoff commented 9 years ago

done