Changed env variable for setup CORS for frontend
This commit is contained in:
parent
2278f0376b
commit
8d0bbfbb8f
@ -13,7 +13,7 @@ def create_app(config_name="default"):
|
|||||||
"""Creates and returns a new instance of Flask app."""
|
"""Creates and returns a new instance of Flask app."""
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
CORS(app, supports_credentials=True, origins=os.getenv("CORS_ALLOWED_ORIGINS", "").split(","))
|
CORS(app, supports_credentials=True, origins=os.getenv("FRONTEND_ORIGIN", "").split(","))
|
||||||
|
|
||||||
# Database settings
|
# Database settings
|
||||||
if config_name == "testing":
|
if config_name == "testing":
|
||||||
|
Loading…
x
Reference in New Issue
Block a user