Skip to content

Upgrade to Falcon 3 for CORS #45

Description

@wacimbel

Hello,
I needed to authorize CORS on the Docker API, and generate an updated Docker image.
To solve it, I upgraded the falcon dependency to 3.0.1, in order to use simple CORS configuration here on line 1 :

APP = falcon.API(cors_enable=True)
APP.add_route('/dep', DepResource())
APP.add_route('/ent', EntResource())
APP.add_route('/sents', SentsResources())
APP.add_route('/sents_dep', SentsDepResources())
APP.add_route('/{model_name}/schema', SchemaResource())
APP.add_route('/models', ModelsResource())
APP.add_route('/version', VersionResource())

If you want me to integrate these changes in your repo, keep me posted ;)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions