Observable.ajax does not recognize the withCredentials mode for CORS.
When run on Chrome, the above code yields the following:
XMLHttpRequest cannot load . A wildcard '*' cannot be used in the 'Access-Control-Allow-Origin' header when the credentials flag is true. Origin 'http://localhost:8080' is therefore not allowed access. The credentials mode of an XMLHttpRequest is controlled by the withCredentials attribute.
The solution offered by @neckaros in the above mentioned issue solves the problem...
Modifying the default settings to set withCredentials:
Issue #117 originally reported by @wizardwerdna, still occurring in rx-dom v7.0.3
Observable.ajax does not recognize the
withCredentials
mode for CORS.When run on Chrome, the above code yields the following:
The solution offered by @neckaros in the above mentioned issue solves the problem...
Modifying the default settings to set
withCredentials
:and forcing false is set to false after creatinng the XHR: