Skip to content

Commit

Permalink
Merge pull request #73 from kgmyatthu/master
Browse files Browse the repository at this point in the history
Fix the issue X-RateLimit-Limit, X-RateLimit-Remaining headers weren't able to be accessed by browsers
  • Loading branch information
MilesCrabbe committed Sep 24, 2021
2 parents b50b059 + 06e8bb4 commit e69d56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#from wsgiref.simple_server import make_server

application = Flask(__name__)
CORS(application)
CORS(application, resources={r"/*": {"expose_headers": ["X-RateLimit-Limit","X-RateLimit-Remaining"]} })

LOG = logging.getLogger(__name__)
# logging.basicConfig(level=logging.INFO)
Expand Down

0 comments on commit e69d56d

Please sign in to comment.