fix: webRequest should be able to modify CORS headers (#21099)
* fix: always use extraHeaders mode * fix: clear pending callbacks * fix: do not use "extraHeaders" for net module * test: webRequest should be able to modify CROS headers * chore: CROS => CORS Co-Authored-By: Milan Burda <milan.burda@gmail.com> * chore: CROS => CORS Co-Authored-By: Milan Burda <milan.burda@gmail.com>
This commit is contained in:
parent
af1e8a347e
commit
b02a20e4dc
5 changed files with 51 additions and 6 deletions
|
@ -67,6 +67,7 @@ class WebRequestAPI {
|
|||
virtual void OnCompleted(extensions::WebRequestInfo* info,
|
||||
const network::ResourceRequest& request,
|
||||
int net_error) = 0;
|
||||
virtual void OnRequestWillBeDestroyed(extensions::WebRequestInfo* info) = 0;
|
||||
};
|
||||
|
||||
// This class is responsible for following tasks when NetworkService is enabled:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue