Skip to content

Configuring CORS for all Blueprints via Config #251

Description

@mfrlin

Is there any way to configure CORS for all Blueprints? If I set up CORS on the app and I register Blueprints then CORS won't work for those Blueprints. So now I have to configure CORS for each Blueprint separately. Furthermore I imagine (docs aren't clear about this) I can configure Flask app with a Config class with CORS_ORIGINS = [...] and it should work. But now CORS does not have access to the app and I have to do it like CORS(blueprint, origins=config_class.CORS_ORIGINS).

Is there a nicer way to do this?

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