Skip to content

Commit

Permalink
Add CORS to ping route (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Jan 29, 2020
1 parent ec9ddfe commit 6629e5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions opwen_email_client/webapp/views.py
Expand Up @@ -16,6 +16,7 @@
from flask import send_file
from flask import send_from_directory
from flask import url_for
from flask_cors import cross_origin
from flask_login import current_user
from flask_security.utils import hash_password
from passlib.pwd import genword
Expand Down Expand Up @@ -375,6 +376,7 @@ def reset_password(userid: str) -> Response:


@app.route(AppConfig.APP_ROOT + '/healthcheck/ping')
@cross_origin()
def ping() -> Response:
return jsonify('OK')

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
@@ -1,6 +1,7 @@
Babel==2.7.0
Flask-BabelEx==0.9.3
Flask-Caching==1.7.2
Flask-Cors==3.0.8
Flask-Migrate==2.5.2
Flask-SQLAlchemy==2.4.1
Flask-Script==2.0.6
Expand Down

0 comments on commit 6629e5a

Please sign in to comment.