Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cfcf0bf

Browse files
committed
Merge pull request auth0#35 from Annyv2/patch-7
Update server.py
2 parents af6eb99 + 93598a6 commit cfcf0bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/flask-api/server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def ping():
7171

7272
@app.route("/secured/ping")
7373
@cross_origin(headers=['Content-Type', 'Authorization'])
74+
@cross_origin(headers=['Access-Control-Allow-Origin', '*'])
7475
@requires_auth
7576
def securedPing():
7677
return "All good. You only get this message if you're authenticated"

0 commit comments

Comments
 (0)