Skip to content

Commit

Permalink
cors added
Browse files Browse the repository at this point in the history
  • Loading branch information
sasi2312 committed May 30, 2024
1 parent 5feb288 commit 78ed104
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@


app = Flask(__name__)
CORS(app)
CORS(app, resources={r"/*": {"origins": "*"}})

Swagger(app)

GITHUB_TOKEN =os.getenv('GITHUB_TOKEN')
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 78ed104

Please sign in to comment.