I have an API protected by HTTP Basic Authentication.
When I want to make AJAX requests against the API, the browser send an OPTIONS request which doesn't carry the Authorization header so it gets rejected and thus my AJAX call is not allowed by the browser.
I tried to configure Tomcat to not authenticate OPTIONS requests but I've not managed to get it to work.
How can I disable HTTP Auth for OPTIONS requests in Tomcat?