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 ?
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-corstorequirements.txtand then patchdapytains/app/app.pylike this.But a cleaner and easier to maintain way of doing this could be to add a variable to the
.envfile that switches on/off CORS, provided that the required dependency is installed.What do you think @PonteIneptique ?