According to MDN documentation, every non-simple request is doomed to fall into an infinite recursion:
- I want to send a non-simple CORS request (with the verb
PUT
e.g.) - My browser tries to send a CORS preflight request for the request above because it is a
PUT
which needs to be preflighted. (so far so good) - My browser tries to send another CORS preflight request for the request above because the preflight request itself is an
OPTIONS
which needs to be preflighted. (what a terrible failure) - My browser tries to send another CORS preflight request for the request above because the preflight request itself is an
OPTIONS
which needs to be preflighted. - My browser tries to send another ...
but it isn't and must not. It's obvious that I got it wrong at #3.
What am I missing here?