So, this is the situation:
- I am developing a web app with AngularJS (client-side) and C# (server-side);
- I have already some web services running well, with no problems (gelAllUsers, getOrderDetails, etc etc);
After I implement the authentication code, the web services stop working. Here are the errors messages:
- OPTIONS http://localhost:62259/Service1.svc/getAllUsers
- XMLHttpRequest cannot load http://localhost:62259/Service1.svc/getAllUsers. Invalid HTTP status code 405
I realized then that the problem is due to every code lines with "$http.defaults.headers.common.Authorization = ..."
After some search, I know I may need to do something which allows the Authorization header.
But what? And how?And where?