I have a RESTful api sitting on a subdomain of my site, so it is configured as shown below:
api.blah.com - RESTful api blah.com - Website
When I try to execute HTTP requests, I get the following error:
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '(index)' is therefore not allowed access.
I thought that since it is in the same domain, this should work, do I need to enable CORS or is there something else I need to do?
The API is built on the ASP.Net web interface, and the website is based on AngularJS.
thanks
source share