Reputation: 417
I am completely new in Ionic as well as Web Development, However i am learning to Develop an App through Ionic Framework. I want to send a SOAP Request through my application, I checked many threads about Sending SOAP Request through Angular and the one i tried to implement is This, But, this doesn't seem to work for me, I didn't get a reponse from the server. The status shows 0. I followed exact steps mentioned there. Help would be really Appreciated.
Upvotes: 1
Views: 2110
Reputation: 417
Solved the error. I was getting this error :-
"Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access."
Solved it by typing this command in Run, chrome.exe --user-data-dir="C:/Chrome dev session" --disable-web-security
Opening my ionic app in this new instance of chrome gave me the reponse from the server
Upvotes: 2