This repository has been archived by the owner. It is now read-only.
CORS support for API Star.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.bumpversion.cfg
.gitignore
CHANGELOG.md
LICENSE
Pipfile
Pipfile.lock
README.md
apistar_cors.py
setup.cfg
setup.py
test_apistar_cors.py

README.md

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.