XDR handling separated from withCredentials, fixed #35
XDR handling separated from withCredentials, introduced peer review changes
Merge pull request #37 from Raynos/separate-cors-withCredentials

XDR handling separated from withCredentials, fixed #35