Python-Sample-Application icon indicating copy to clipboard operation
Python-Sample-Application copied to clipboard

Set debug=False by default

Open kevinlondon opened this issue 10 years ago • 1 comments

This changes the app to run with DEBUG=False unless the environment variable for FLASK_DEBUG has been explicitly set. Flask's docs include a note about how this should never be run on production with debug=True because it enables remote code execution. Patreon was supposedly just hacked because one of their test servers had debug=True enabled so I think it makes sense to keep it disabled by default in the interest of security.

kevinlondon avatar Oct 04 '15 07:10 kevinlondon

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Jun 27 '19 13:06 CLAassistant