From 20665c7343b91cb6a842819d2bad4aea29781d2a Mon Sep 17 00:00:00 2001 From: Shivam Gutgutia Date: Sun, 17 Dec 2023 16:34:15 +0530 Subject: [PATCH] Implemented cors --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 3688b3f..5ac3c22 100644 --- a/app.py +++ b/app.py @@ -7,7 +7,7 @@ load_dotenv() app= Flask(__name__) -CORS(app) +CORS(app, resources={r"/*": {"origins": "https://contactify.codechefvit.com"}, "methods": ["GET", "POST"],}) app.config['MAX_CONTENT_LENGTH'] = 1024*1024*1024 @app.errorhandler(Exception)