Provide option to set Referer header on service client.
Due to it being a restricted header, the referer cannot be set using the standard header methods. In order to set the referer on a standard http web request, you must use the referer property. I would like to suggest that this header be accessible from the client.
1
vote

Just use a Request Filter, e.g:
var client = new JsonServiceClient(baseUrl) {
RequestFilter = req => req.Referer = referer
};
-
Josh Engler commented
Ah, gotcha. We normally pass around the IServiceClient interface, I forgot that was in the base service client.