Skip to content

Commit e69d56d

Browse files
authored
Merge pull request #73 from kgmyatthu/master
Fix the issue X-RateLimit-Limit, X-RateLimit-Remaining headers weren't able to be accessed by browsers
2 parents b50b059 + 06e8bb4 commit e69d56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#from wsgiref.simple_server import make_server
2929

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

3333
LOG = logging.getLogger(__name__)
3434
# logging.basicConfig(level=logging.INFO)

0 commit comments

Comments
 (0)