Skip to content

Commit

Permalink
added Access-Control-Expose-Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
krokicki committed Oct 4, 2024
1 parent 2a91149 commit dfd590f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions docker/include/proxy_pass.conf
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ add_header Access-Control-Allow-Origin '*' always;
add_header Access-Control-Allow-Credentials 'true' always;
add_header Access-Control-Allow-Methods 'GET, HEAD, OPTIONS' always;
add_header Access-Control-Allow-Headers '*' always;
add_header Access-Control-Expose-Headers 'Range, Content-Range' always;

1 change: 1 addition & 0 deletions x2s3/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def create_app(settings):
allow_credentials=True,
allow_methods=["GET","HEAD"],
allow_headers=["*"],
expose_headers=["Range", "Content-Range"],
)
app.mount("/static", StaticFiles(directory="static"), name="static")
templates = Jinja2Templates(directory="templates")
Expand Down

0 comments on commit dfd590f

Please sign in to comment.