Allow withCredentials flag
Merge pull request #8 from alicoding/credentials

Allow withCredentials flag