diff --git a/ennstatus/__init__.py b/ennstatus/__init__.py --- a/ennstatus/__init__.py +++ b/ennstatus/__init__.py @@ -3,12 +3,14 @@ import json from flask import Flask, render_template from flask.ext.bootstrap import Bootstrap +from flask.ext.wtf import CsrfProtect from werkzeug.contrib.fixers import ProxyFix import gnupg bootstrap = Bootstrap() +csrf = CsrfProtect() config_file = os.path.abspath('config.json') @@ -40,6 +42,7 @@ def create_app(): app.wsgi_app = ProxyFix(app.wsgi_app) bootstrap.init_app(app) + csrf.init_app(app) from .status.functions import mail mail.init_app(app)