Seeed-Studio / Wio_Link

Wio_Link 8266
http://seeed-studio.github.io/Wio_Link/
182 stars 64 forks source link

Improve CORS compatibility and allow JSON body for user auth #16

Closed retro486 closed 8 years ago

retro486 commented 8 years ago

Add tornado-cors to shim in better CORS compliance (namely responding to the empty OPTIONS request) and allow user auth data to be POSTed as JSON data in the body. Also add a try-catch in BaseHandler for when failure_reason isn't defined.

Also remove Access-Control-Allow-Origin header since the CorsMixin handles that now.

KillingJacky commented 8 years ago

Thank you very much for your pull, Russ.