The issue here is that using app.run() directly in a Flask application is discouraged, especially in production environments, because it exposes the application to potential security risks. The built-in development server in Flask is not designed to be used in production and lacks some security features that production-ready servers offer (e.g., gunicorn, uWSGI).
To address this, you can change your code to avoid using app.run() directly. Instead, you should use a production-ready WSGI server.
Hello @phyleria
The issue here is that using app.run() directly in a Flask application is discouraged, especially in production environments, because it exposes the application to potential security risks. The built-in development server in Flask is not designed to be used in production and lacks some security features that production-ready servers offer (e.g., gunicorn, uWSGI).
To address this, you can change your code to avoid using app.run() directly. Instead, you should use a production-ready WSGI server.