From c038ef5db7dc8610c3b2a28c9feed1ef9f75034e Mon Sep 17 00:00:00 2001 From: Pierre Fontaine Date: Mon, 18 Jan 2021 16:49:50 +0100 Subject: [PATCH] :wrench: Add Cors on config file. --- conduit/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conduit/settings.py b/conduit/settings.py index 0776d05..b3c6b05 100644 --- a/conduit/settings.py +++ b/conduit/settings.py @@ -25,6 +25,8 @@ class Config(object): 'http://localhost:4200', 'http://0.0.0.0:4000', 'http://localhost:4000', + 'http://0.0.0.0:' + os.environ.get('PORT', '8080'), + 'https://0.0.0.0:' + os.environ.get('PORT', '8080'), 'https://cranky-keller-ede639.netlify.app' ] JWT_HEADER_TYPE = 'Token'