Why is the preflight OPTIONS requests not hitting my CorsFilter?
I have added a CorsFilter implementing ContainerRequestFilter
and ContainerResponseFilter
to my jax-rs backend API. Pretty much a copy/paste of other CorsFilters found on Stackoverflow and other guides. When I do requests from the browser, the preflight OPTIONS requests do not hit the CorsFilter(tested with logging and debug breakpoints), however my GET and POST requests hits the CorsFilter.