To be able to add or remove headers on a redirect, one can uses:
URLLoader::FollowRedirect(removed_headers, modified_headers).
This API is not implemented by all URLLoader / ResourceLoader implementations. Some code paths are just using:
~~~
DCHECK(!modified_request_headers.has_value())
<< "Redirect with modified headers was not supported yet. "
" crbug.com/845683 ";
~~~
Most code paths aren't forwarding |removed_headers| either.
The goal is to make modifying / removing headers available from the NavigationRequest, which uses URLLoader == NavigationURLLoader.
This CL tracks CLs made to achieve this goal.
Comment 1 by mmenke@google.com
, Dec 3