Skip to content

Commit

Permalink
Merge pull request #14 from geniusyield/13-add-csrfprotect
Browse files Browse the repository at this point in the history
Add CSRFProtect #13
  • Loading branch information
4TT1L4 authored Apr 16, 2024
2 parents 63849db + d8b4b45 commit 20e74cf
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 45 deletions.
7 changes: 6 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
from api import ApiException
from datetime import datetime
import logging
from flask_wtf.csrf import CSRFProtect

# Spin up Flask Application
app = Flask(__name__)
app.config['WTF_CSRF_ENABLED'] = True

# Setup CSRF Protection.
csrf = CSRFProtect(app)
csrf.init_app(app)

logger = logging.getLogger('gunicorn.error')

Expand Down
89 changes: 45 additions & 44 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,44 +1,45 @@
asttokens==2.4.1
certifi==2024.2.2
charset-normalizer==3.3.2
colorama==0.4.6
comm==0.2.1
debugpy==1.8.1
decorator==5.1.1
executing==2.0.1
fsspec==2024.2.0
idna==3.7
ipykernel==6.29.2
ipython==8.21.0
jedi==0.19.1
jupyter_client==8.6.0
jupyter_core==5.7.1
matplotlib-inline==0.1.6
nest-asyncio==1.6.0
numpy==1.26.4
packaging==23.2
pandas==2.2.0
parso==0.8.3
platformdirs==4.2.0
polars==0.20.7
prompt-toolkit==3.0.43
psutil==5.9.8
pure-eval==0.2.2
pyarrow==15.0.0
Pygments==2.17.2
python-dateutil==2.8.2
pytz==2024.1
pyzmq==25.1.2
requests==2.31.0
six==1.16.0
stack-data==0.6.3
tornado==6.4
traitlets==5.14.1
types-requests==2.31.0.20240125
tzdata==2024.1
urllib3==2.2.0
wcwidth==0.2.13
flask==3.0
gunicorn==21
openapi-python-client==0.19.1
talipp==2.2.0
asttokens==2.4.1
certifi==2024.2.2
charset-normalizer==3.3.2
colorama==0.4.6
comm==0.2.1
debugpy==1.8.1
decorator==5.1.1
executing==2.0.1
fsspec==2024.2.0
idna==3.7
ipykernel==6.29.2
ipython==8.21.0
jedi==0.19.1
jupyter_client==8.6.0
jupyter_core==5.7.1
matplotlib-inline==0.1.6
nest-asyncio==1.6.0
numpy==1.26.4
packaging==23.2
pandas==2.2.0
parso==0.8.3
platformdirs==4.2.0
polars==0.20.7
prompt-toolkit==3.0.43
psutil==5.9.8
pure-eval==0.2.2
pyarrow==15.0.0
Pygments==2.17.2
python-dateutil==2.8.2
pytz==2024.1
pyzmq==25.1.2
requests==2.31.0
six==1.16.0
stack-data==0.6.3
tornado==6.4
traitlets==5.14.1
types-requests==2.31.0.20240125
tzdata==2024.1
urllib3==2.2.0
wcwidth==0.2.13
flask==3.0
gunicorn==21
openapi-python-client==0.19.1
talipp==2.2.0
Flask-WTF==1.2.1

0 comments on commit 20e74cf

Please sign in to comment.