Skip to content

Commit

Permalink
Fix Issue http.
Browse files Browse the repository at this point in the history
Force all conections to be in HTTPS
  • Loading branch information
kilerhg committed Oct 21, 2021
1 parent 84284b1 commit 34827e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from flask import Flask, render_template, redirect, url_for, request, session
from flask_talisman import Talisman
from authlib.integrations.flask_client import OAuth
from datetime import timedelta
import os
Expand All @@ -19,6 +20,7 @@
secret = secrets.token_urlsafe(32)

app = Flask(__name__)
Talisman(app, content_security_policy=None)
# app.secrect_key = secret
# app.secrect_key = os.getenv("APP_SECRET_KEY")
app.config['SECRET_KEY'] = os.getenv("APP_SECRET_KEY")
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ Werkzeug==2.0.1
gunicorn==20.0.4
Authlib==0.15.4
python-dotenv==0.19.0
psycopg2-binary==2.9.1
psycopg2-binary==2.9.1
flask-talisman==0.8.1

0 comments on commit 34827e5

Please sign in to comment.