From 78ed104d298f80ce6ab2ce954eeaffebde27f904 Mon Sep 17 00:00:00 2001 From: sasi Date: Thu, 30 May 2024 16:30:41 +0530 Subject: [PATCH] cors added --- app.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 136c126..c9fe579 100644 --- a/app.py +++ b/app.py @@ -8,7 +8,8 @@ app = Flask(__name__) -CORS(app) +CORS(app, resources={r"/*": {"origins": "*"}}) + Swagger(app) GITHUB_TOKEN =os.getenv('GITHUB_TOKEN') @@ -256,7 +257,7 @@ def get_issues_by_owner_id(owner, issue): # Before request handler to check for the presence of the secret key -@app.before_request +# @app.before_request def check_secret_key(): for route_pattern in protected_routes: if route_pattern.match(request.path):