Skip to content

Commit ad7d28a

Browse files
committed
Remove CSRF protection of API
1 parent fe019ed commit ad7d28a

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Flask-Login==0.4.1
3030
Flask-Migrate==2.2.0
3131
Flask-SQLAlchemy==2.3.2
3232
Flask-Webpack==0.1.0
33-
Flask-WTF==0.14.2
3433
gevent==1.3.7
3534
greenlet==0.4.15
3635
gunicorn==19.9.0

tsa/app.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from flask import Flask, g, render_template
77

88
from tsa import commands, public
9-
from tsa.extensions import bcrypt, cache, csrf_protect, db, debug_toolbar, migrate, sentry, webpack
9+
from tsa.extensions import bcrypt, cache, db, debug_toolbar, migrate, sentry, webpack
1010
from tsa.settings import ProdConfig
1111

1212

@@ -32,7 +32,6 @@ def register_extensions(app):
3232
bcrypt.init_app(app)
3333
cache.init_app(app)
3434
db.init_app(app)
35-
csrf_protect.init_app(app)
3635
debug_toolbar.init_app(app)
3736
migrate.init_app(app, db)
3837
sentry.init_app(app, logging=True, level=logging.ERROR)

tsa/extensions.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
66
from flask_migrate import Migrate
77
from flask_sqlalchemy import SQLAlchemy
88
from flask_webpack import Webpack
9-
from flask_wtf.csrf import CSRFProtect
109
from raven.contrib.flask import Sentry
1110

1211
bcrypt = Bcrypt()
13-
csrf_protect = CSRFProtect()
1412
db = SQLAlchemy()
1513
migrate = Migrate()
1614
cache = Cache()

0 commit comments

Comments
 (0)