CORS support for API Star.
pipenv install apistar_cors
from apistar import App
from apistar_cors import CORSMixin
class App(CORSMixin, WSGIApp):
pass
COMPONENTS = [
# ...
]
ROUTES = [
# ...
]
app = App(
components=COMPONENTS,
routes=ROUTES,
)
apistar_cors is licensed under Apache 2.0. Please see LICENSE for licensing details.