Skip to content

Commit

Permalink
added X-RateLimit-Limit, X-RateLimit-Remaining headers to Access-Cont…
Browse files Browse the repository at this point in the history
…rol-Expose-Headers configuration
  • Loading branch information
kgmyatthu committed May 7, 2021
1 parent d392c15 commit 06e8bb4
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 06e8bb4

Please sign in to comment.