Bogdanp / apistar_cors

CORS support for API Star.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

CORS support for API Star.

License:Other


Languages

Language:Python 100.0%