Why does the post request of ajax trigger options first?

Why does the post request of ajax trigger options first?
what should I do if I want to trigger the options request first and then the post request?

Apr.29,2021

A CORS (cross-domain) request that is not a simple request adds a HTTP query request, called a "pre-check" request (preflight), before the formal communication.

that is, an post request will be sent before your OPTIONS request

take a look at this: Cross-domain Resource sharing CORS


Cross-domain

because your request originating domain and arriving domain are not in the same domain , the browser will first launch a OPTIONS request to ask arriving domain to allow those request methods , request header , initiating domain , etc.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3af7b-2c24b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3af7b-2c24b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?