Fixes #14787: Set Origin header in http_network_or_cache_fetch …
Sets Origin header on request with CORS flag set or on requests other than those with GET/HEAD methods