Fix security issue: disable Flask debug mode
Co-authored-by: Kenearos <86194771+Kenearos@users.noreply.github.com>
This commit is contained in:
parent
be9ed433b6
commit
a6abfce322
1 changed files with 2 additions and 1 deletions
3
app.py
3
app.py
|
|
@ -146,4 +146,5 @@ if __name__ == '__main__':
|
|||
print("\nStarte Server auf http://localhost:5000")
|
||||
print("Drücke CTRL+C zum Beenden\n")
|
||||
|
||||
app.run(debug=True, host='0.0.0.0', port=5000)
|
||||
# Note: debug=False for security. Set to True only in trusted development environments.
|
||||
app.run(debug=False, host='0.0.0.0', port=5000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue