Skip to content

Commit 9aec549

Browse files
committed
Use ProxyFix for WSGI
1 parent 3834fcd commit 9aec549

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wsgi.py

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
from flask.cli import load_dotenv
77
from flask.helpers import get_load_dotenv
8+
from werkzeug.middleware.proxy_fix import ProxyFix
89

910
__all__ = ['application']
1011

@@ -14,3 +15,5 @@
1415

1516
# pylint: disable=wrong-import-position
1617
from hasmail import app as application # isort:skip
18+
19+
application.wsgi_app = ProxyFix(application.wsgi_app) # type: ignore[method-assign]

0 commit comments

Comments
 (0)