'asp.net web service using #angularjs

how to solving problem Control-Allow-Origin in #angularjs

enter image description here



Solution 1:[1]

Either change the port in your .net API settings file, or change the port in the path where you compose your request (the Angular app), as the message states, you do have a CORS policy in place, it just doesn't match the request path. The ports are different. Make sure to also match the protocol, http vs https may also invalidate the request and, of course, you should use the secure protocol.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1