I am learning about web services so I set up a test environment based on this tutorial. I then created a web app project within the same solution and successfully called the service after setting up a web reference. I then attempted to call the service using ajax. I got the CORS error. I'm not well versed on 'CORS' so I decided to create a web method in the code behind that would then call the external service. It works with no errors. It got me wondering what "best practice" is for calling external service from the client. Should you try calling direct or should you call a web method that then calls the service?
In my opinion, calling external services / APIs from the back-end is frequently the best option. It has multiple benefits such as: