I wanted to follow the excample about cors.
my code is as follows:
I removed the encoded username password.
My WEBAPI Settings are as follows:
Authentication is Basic:
When i try debugging, i get the HTTP status 400:
Debugging Network Header Information:
with this information i could not find any wrong configuration of my CORS Settings, but maybe i miss something
In the Response debuging information i get the message 'GET' is not allowed:
when i copy the request URL from debugging and copy it in the browser adress field, i get an Authenticaton Required:
After entering my credentials it works in the browser, so i think my ajax URL is OK:
where is my problem? is it a wrong cors setting or an error in the code?