https://bugzilla.wikimedia.org/show_bug.cgi?id=55631
Web browser: ---
Bug ID: 55631
Summary: upload.wikimedia.org should allow 'Range' via
Access-Control-Allow-Headers on CORS preflight
Product: Wikimedia
Version: wmf-deployment
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Media storage
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
I'm doing some experiments with client-side video manipulation and need to be
able to load up a subset of a file via XMLHttpRequest to implement streaming
and seeking.
In theory I can do this by adding a 'Range' header with a byte range:
xhr.setRequestHeader("range", "bytes=" + position + "-" + endPosition);
However for a cross-domain request this triggers a 'preflight' OPTIONS request
to ask the server if it's ok to send 'Range' headers -- that OPTIONS hit
includes this request header:
Access-Control-Allow-Headers: Range
the OPTIONS *response* needs to include the same line back to us, or the
browser will refuse to make an actual GET request including the 'Range' header.
Without the Range header this leaves me only able to fetch the entire file into
memory at once, which won't be suitable for large video files.
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l