Skip to content

Commit

Permalink
remove seasurf
Browse files Browse the repository at this point in the history
  • Loading branch information
CalebCourier committed Feb 26, 2024
1 parent e9bb8d0 commit 1d8c0fc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
from flask import Flask
from flask_cors import CORS
from werkzeug.middleware.proxy_fix import ProxyFix
from flask_seasurf import SeaSurf
# from flask_seasurf import SeaSurf
# from flask_talisman import Talisman


def create_app():
app = Flask(__name__)
CORS(app)

host = os.environ.get("SELF_ENDPOINT", "http://localhost:8000")
if host.startswith("https://"):
SeaSurf(app)
# Talisman(app, force_https_permanent=True)
# host = os.environ.get("SELF_ENDPOINT", "http://localhost:8000")
# if host.startswith("https://"):
# SeaSurf(app)
# Talisman(app, force_https_permanent=True)
app.wsgi_app = ProxyFix(
app.wsgi_app,
x_for=1,
Expand Down

0 comments on commit 1d8c0fc

Please sign in to comment.