Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit06e8bb4

Browse files
committed
added X-RateLimit-Limit, X-RateLimit-Remaining headers to Access-Control-Expose-Headers configuration
1 parentd392c15 commit06e8bb4

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)

[8]ページ先頭

©2009-2025 Movatter.jp