From a10301756f87d719376eba7d222376163cba6586 Mon Sep 17 00:00:00 2001 From: Daniel Von Fange Date: Fri, 24 Sep 2021 10:03:24 -0400 Subject: [PATCH] Disable CORS on all routes but mailing list --- views/web_views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/views/web_views.py b/views/web_views.py index efbc2b5d2f..8ed37cc05f 100644 --- a/views/web_views.py +++ b/views/web_views.py @@ -6,7 +6,7 @@ import calendar import random -from flask_cors import CORS, cross_origin +from flask_cors import cross_origin from app import app from database import db, db_models @@ -45,7 +45,6 @@ # Translation: change path of messages.mo files app.config["BABEL_TRANSLATION_DIRECTORIES"] = "../translations" babel = Babel(app) -cors = CORS(app) app.config['CORS_HEADERS'] = 'Content-Type' recaptcha = ReCaptcha(app=app)