fix: webRequest should be able to modify CORS headers (7-1-x) (#21123)

* test: move webRequest spec to main runner (#19992)

* fix: webRequest should be able to modify CORS headers (#21099)
This commit is contained in:
Cheng Zhao
2019-11-15 14:56:52 +09:00
committed by GitHub
parent 2b84b1ea43
commit 49d91c7fc8
7 changed files with 143 additions and 190 deletions

View File

@@ -99,7 +99,7 @@ Some examples of valid `urls`:
* `timestamp` Double
* `requestHeaders` Record<string, string>
* `callback` Function
* `response` Object
* `beforeSendResponse` Object
* `cancel` Boolean (optional)
* `requestHeaders` Record<string, string | string[]> (optional) - When provided, request will be made
with these headers.
@@ -148,7 +148,7 @@ response are visible by the time this listener is fired.
* `statusCode` Integer
* `responseHeaders` Record<string, string> (optional)
* `callback` Function
* `response` Object
* `headersReceivedResponse` Object
* `cancel` Boolean (optional)
* `responseHeaders` Record<string, string | string[]> (optional) - When provided, the server is assumed
to have responded with these headers.