add withCredentials to options
Merge pull request #1 from pietvanzoen/master

add withCredentials to options