[whatwg/fetch] Refactor the CORS check (#824)

In particular, make it use header list's get operation to retrieve the Access-Control-Allow-Origin and Access-Control-Allow-Credentials values.

Tests: https://github.com/web-platform-tests/wpt/pull/13815.
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/824

-- Commit Summary --

  * Refactor the CORS check

-- File Changes --

    M fetch.bs (55)

-- Patch Links --

https://github.com/whatwg/fetch/pull/824.patch
https://github.com/whatwg/fetch/pull/824.diff

-- 
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/pull/824

Received on Thursday, 1 November 2018 09:43:42 UTC