| Summary: | CORS: Allow particular Range header values without a preflight | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jake Archibald <jaffathecake> | ||||
| Component: | DOM | Assignee: | youenn fablet <youennf> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | achristensen, ap, cdumez, clopez, ews-watchlist, joeyparrish, jon.ronnenberg, tomac, webkit-bug-importer, youennf | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | Safari Technology Preview | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| See Also: |
https://github.com/web-platform-tests/wpt/pull/33488 https://bugs.webkit.org/show_bug.cgi?id=243403 |
||||||
| Attachments: |
|
||||||
|
Description
Jake Archibald
2021-10-04 09:10:15 PDT
CORS-safelisted request-header: https://fetch.spec.whatwg.org/#cors-safelisted-request-header Allowed particular Range header values (simple range header value): https://fetch.spec.whatwg.org/#simple-range-header-value Examples: Range:bytes=0-255 Range:bytes=255- Created attachment 456547 [details]
Patch
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/33488 Comment on attachment 456547 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=456547&action=review > LayoutTests/imported/w3c/web-platform-tests/fetch/range/general.any.js:129 > + 'bytes=00000000000000000000000000000000000000000000000000000000011-00000000000000000000000000000000000000000000000000000000000111', This isn't 128 bytes. Let's add such a test. Comment on attachment 456547 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=456547&action=review >> LayoutTests/imported/w3c/web-platform-tests/fetch/range/general.any.js:129 >> + 'bytes=00000000000000000000000000000000000000000000000000000000011-00000000000000000000000000000000000000000000000000000000000111', > > This isn't 128 bytes. Let's add such a test. I think this is 128 bytes, the other one above should be 129 and fail. Committed r292293 (249191@main): <https://commits.webkit.org/249191@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 456547 [details]. |