Skip to content

Enable CORS via app configuration? #30

@mromanello

Description

@mromanello

We need our instance of MyDapytains to have CORS enabled, for example, in order to view its content via a third-party viewer.

What we are doing for now is to add flask-cors to requirements.txt and then patch dapytains/app/app.py like this.

But a cleaner and easier to maintain way of doing this could be to add a variable to the .env file that switches on/off CORS, provided that the required dependency is installed.
What do you think @PonteIneptique ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions