Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
This adds a test that Headers objects with the "request-no-cors" guard
don't accept empty header values for non-safelisted header names.
  • Loading branch information
andreubotella authored Feb 9, 2023
1 parent 98a96d4 commit 0598a71
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fetch/api/request/request-headers.any.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ var invalidRequestNoCorsHeaders = [
["proxya", "KO"],
["sec", "KO"],
["secb", "KO"],
["Empty-Value", ""],
];

validRequestHeaders.forEach(function(header) {
Expand Down

0 comments on commit 0598a71

Please sign in to comment.