So I\'m attempting to get a progress bar on file uploads on my site. If I simply upload the resource
$.ajax({
url: $rootScope.URL, //Server script to proces
So, first of all I do not think it has anything to do with your CORS configuration, as it would output different errors. Looking into what can cause the error you are receiving in the context of Azure/IIS I found the following possibilities:
in your web.config
file. (This is the default in certain cases).
Lastly I just found this answer which might offer some different solutions where you do not set the CORS headers in your PHP file, but instead set them in the server configuration.