Skip to content

Commit

Permalink
Bug 1460300 [wpt PR 10930] - expose content-length on a cors request …
Browse files Browse the repository at this point in the history
…by default, a=testonly

Automatic update from web-platform-testsCORS: safelist Content-Length header

See whatwg/fetch#626 for details.
--

wpt-commits: 407ecdff87af8aeceaa07cbc71aac9ec355d4334
wpt-pr: 10930
  • Loading branch information
shacharz authored and jgraham committed May 18, 2018
1 parent 3ff56e0 commit 778d184
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion testing/web-platform/meta/MANIFEST.json
Original file line number Diff line number Diff line change
Expand Up @@ -560280,7 +560280,7 @@
"testharness"
],
"fetch/api/cors/cors-filtering.js": [
"5beac80fa31e80addfdd29fa58557ef59865744a",
"44029d3879fb0efdd6e2bfea6b5ce78b63b8e14e",
"support"
],
"fetch/api/cors/cors-multiple-origins.sub.any.js": [
Expand Down
3 changes: 1 addition & 2 deletions testing/web-platform/tests/fetch/api/cors/cors-filtering.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,17 @@ corsFilter(url, "Content-Type", "text/html", false);
corsFilter(url, "Expires","04 May 1988 22:22:22 GMT" , false);
corsFilter(url, "Last-Modified", "04 May 1988 22:22:22 GMT", false);
corsFilter(url, "Pragma", "no-cache", false);
corsFilter(url, "Content-Length", "3" , false); // top.txt contains "top"

corsFilter(url, "Age", "27", true);
corsFilter(url, "Server", "wptServe" , true);
corsFilter(url, "Warning", "Mind the gap" , true);
corsFilter(url, "Content-Length", "3" , true); // top.txt contains "top"
corsFilter(url, "Set-Cookie", "name=value" , true);
corsFilter(url, "Set-Cookie2", "name=value" , true);

corsExposeFilter(url, "Age", "27", false);
corsExposeFilter(url, "Server", "wptServe" , false);
corsExposeFilter(url, "Warning", "Mind the gap" , false);
corsExposeFilter(url, "Content-Length", "3" , false);

corsExposeFilter(url, "Set-Cookie", "name=value" , true);
corsExposeFilter(url, "Set-Cookie2", "name=value" , true);
Expand Down

0 comments on commit 778d184

Please sign in to comment.