autopulous / angular2-soap

Angular 2 SOAP client service (supports Angular 2 rc 4)
30 stars 23 forks source link

EXCEPTION: responseNodeList is null when preflight OPTIONS sent with CORS enabled. #4

Open broweratcognitecdotcom opened 7 years ago

broweratcognitecdotcom commented 7 years ago

I'm using Angular 2 and my code is almost exactly like the example. The SOAP request is to a web service on a server other than what Node is running on. So this is a cross origin request.

Firefox tells me: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://192.168.208.19:1069/. This can be fixed by moving the resource to the same domain or enabling CORS.

I can see the preflight OPTIONS request. Returns with 200 OK. But in the console I see: TypeError: responseNodeList is null. Should handling be added for when user chosen options are not correct?