How to add OPTIONS for every routes in 0.4+?


I tried creating an on_response event hook to check request method if it was “OPTIONS” I will overwrite response header and content. But got no response error.


There is not, at least without overriding important and sensible parts of App code. No there is no easy way to add CORS at least for ASyncApp due to the hooks limited nature. Best option? Put an nginx in front of Apistar and do the cors there


I deployed on Heroku and ended up using nginx buildpack