Add support for with credentials to be passed via a request

Adds a withCredentials pass through when making requests.