I see this when I run the flask app and i'm trying to understand where it will get used?
Please let me know!
This is an additional security measure provided by Werkzeug (which is one of the dependencies for Flask) to prevent the debugger from being accessible without the knowledge of the PIN. You can use the debugger pin in the browser to launch the interactive debugger.
Please note you should never be using DEBUG mode in Production anyways because the stack trace of error can potentially reveal multiple aspects of your code.
The Debugger PIN is a just an added layer of security in case you inadvertently leave the Debug mode on in an Production application to make it difficult for the attacker to access the debugger .
This is a security code for the debugger. Its purpose is to make access to the debugger more difficult for an attacker in a production environment. More details here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With