We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4080ace + c8023dd commit 7131808Copy full SHA for 7131808
2 files changed
app.py
@@ -10,6 +10,12 @@
10
app.config.from_object(app_config)
11
Session(app)
12
13
+# This section is needed for url_for("foo", _external=True) to automatically
14
+# generate http scheme when this sample is running on localhost,
15
+# and to generate https scheme when it is deployed behind reversed proxy.
16
+# See also https://flask.palletsprojects.com/en/1.0.x/deploying/wsgi-standalone/#proxy-setups
17
+from werkzeug.middleware.proxy_fix import ProxyFix
18
+app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1, x_host=1)
19
20
@app.route("/")
21
def index():
requirements.txt
@@ -1,4 +1,5 @@
1
Flask>=1,<2
2
+werkzeug>=1,<2
3
git+https://github.com/rayluo/flask-session@0.3.x#egg=flask-session
4
requests>=2,<3
5
msal>=0,<2
0 commit comments