From 8656df32cf1a78ec76b8cba21fb394015d8b399a Mon Sep 17 00:00:00 2001 From: Joe Banks Date: Mon, 14 Dec 2020 18:41:33 +0000 Subject: Swap out list of regex for single regex --- backend/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'backend') diff --git a/backend/__init__.py b/backend/__init__.py index 67de26d..0eddde0 100644 --- a/backend/__init__.py +++ b/backend/__init__.py @@ -15,9 +15,7 @@ middleware = [ allow_origins=[ os.getenv("ALLOWED_URL", "https://forms.pythondiscord.com"), ], - allow_origin_regex=[ - r"https://(?:.*--)?pydis-forms\.netlify\.app/", - ], + allow_origin_regex=r"https://(?:.*--)?pydis-forms\.netlify\.app/", allow_headers=[ "Authorization", "Content-Type" -- cgit v1.2.3