Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘<domain>’ is therefore not allowed access. The response had HTTP status code 405.
We want to expose our api to be called from other domain. In default browsers doesen’t allow cross domain xhr requests.
To get it fixed we want to allow CORS in our web api.
I have created video on enabling CORS in web api.