If it's "can someone just point their browser at my IP and access it" then likely yes, it is secure but it is not secure from other attacks. It depends on what your definition of "secure" is. If the data you are dealing with is unbelievably sensitive then it would be sensible to only take the aggregated data with you that you'd need to run the dashboard, if possible. If you're worried about being attacked from a local network, don't connect to any networks. The asker of the question is using dash in a meeting to present results.Īssuming that you are only running the dashboard for the duration of the meeting, and your device is not actively under attack, and you are in control of the device at all times, generally, you should be ok. Otherwise accessing the dash webpage will not be possible.įollowing what Matt said in his answer. I was only able to access the app using the dev server once I had made that change to the host parameter. Normally when a new application attempts to expose a port on Windows, you would get a Security Alert (assuming you're using the standard firewall, but other firewalls behave in much the same way):Īssuming that you have not configured the firewall, and you are running the app using the Flask development server and not a production WSGI server, and you haven't touched the config of the Flask dev server you'll be ok. I created a demo Dash Dashboard on my machine to test this.Īt first I made no changes to my PC's firewall configuration and was unable to access the webpage from another computer. This boilerplate can be modified to allow other devices on the network to access a locally hosted development server by adding the host parameter as follows: if _name_ = '_main_':Īpp.run_server(debug=True, host='0.0.0.0') The simplest of Dash apps typically consist of one Python file and have this boilerplate code at the end: if _name_ = '_main_': Dash is a Python framework built on top of Flask, Plotly.js, React, and React Js.Īs per the official Flask documentation the development server on localhost cannot be accessed from outside the host machine unless explicitly configured to do so.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |