Re: [whatwg/fetch] Allow * for Access-Control-Allow-Headers and Access-Control-Allow-Methods (#251)

Oh, got it. Thanks Jonas for elaboration.

So, the step 6 of `CORS-preflight fetch`:

1. If one of request's header list' names is not in headerNames and its corresponding header is not a simple header, return a network error.

will be modified e.g. like as follows:

----

A non-wildcarded header is a header whose name is one of
- Authorization

...

1. ...
1. If headerNames is wildcard,
  1. If one of request's header list' names is a non-wildcarded header, return a network error.
1. Otherwise,
  1. If one of request's header list' names is not in headerNames and its corresponding header is not a simple header, return a network error.
1. ...
1. If headerNames is wildcard,
  1. For each headerName in request's header list' which is not a simple header and for which there is a header-name cache match using ...  
  1. For each headerName in request's header list' which is not a simple header and for which there is no header-name cache match using ...
1. Otherwise,
  1. For each ...

----

Note that it's guaranteed that headerName is not any of the non-wildcarded header at the point we're modifying preflight cache.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/251#issuecomment-209292288

Received on Wednesday, 13 April 2016 08:00:20 UTC