Skip to content

Commit edac82b

Browse files
committed
Exposing the Link and X-CuplBackend-Hmac-SHA256 headers If this is not explicity enabled with Flask-CORS, then a browser will refuse to read these headers.
1 parent a7d94a2 commit edac82b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

backendapp/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.0
1+
1.0.1

backendapp/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,7 @@
6363
WSB_PROTOCOL = os.getenv('WSB_PROTOCOL', defaults.WSB_PROTOCOL)
6464
SERVER_NAME = os.getenv('SERVER_NAME', "{host}:{port}".format(host=WSB_HOST, port=WSB_PORT))
6565

66+
CORS_EXPOSE_HEADERS = ["Link", "X-CuplBackend-Hmac-SHA256"]
67+
6668
PREFERRED_URL_SCHEME = WSB_PORT.replace("://", "")
6769

0 commit comments

Comments
 (0)