Skip to content
This repository has been archived by the owner on Oct 3, 2018. It is now read-only.

Bogdanp/apistar_cors

Repository files navigation

apistar-cors

CORS support for API Star.

Installation

pipenv install apistar_cors

Usage

from apistar import App
from apistar_cors import CORSMixin


class App(CORSMixin, WSGIApp):
  pass


COMPONENTS = [
    # ...
]

ROUTES = [
    # ...
]

app = App(
    components=COMPONENTS,
    routes=ROUTES,
)

License

apistar_cors is licensed under Apache 2.0. Please see LICENSE for licensing details.