Skip to content

Commit

Permalink
Merge pull request #4 from Code4GovTech/sasi_dev
Browse files Browse the repository at this point in the history
cors added
  • Loading branch information
VedantKhairnar authored May 30, 2024
2 parents cf4097a + 78ed104 commit 4ab983c
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 4ab983c

Please sign in to comment.