Skip to content

Commit 5471f30

Browse files
committed
CORS update allowed origin
1 parent 60eac8c commit 5471f30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

00-Starter-Seed/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def public():
150150

151151
@APP.route("/api/private")
152152
@cross_origin(headers=["Content-Type", "Authorization"])
153-
@cross_origin(headers=["Access-Control-Allow-Origin", "*"])
153+
@cross_origin(headers=["Access-Control-Allow-Origin", "http://localhost:3000"])
154154
@requires_auth
155155
def private():
156156
"""A valid access token is required to access this route
@@ -161,7 +161,7 @@ def private():
161161

162162
@APP.route("/api/private-scoped")
163163
@cross_origin(headers=["Content-Type", "Authorization"])
164-
@cross_origin(headers=["Access-Control-Allow-Origin", "*"])
164+
@cross_origin(headers=["Access-Control-Allow-Origin", "http://localhost:3000"])
165165
@requires_auth
166166
def private_scoped():
167167
"""A valid access token and an appropriate scope are required to access this route

0 commit comments

Comments
 (0)