Can the first head request sent by the axios cross-domain request be removed?

problem description

I found that axios sends an option request before each request, verifying methods that can be cross-domain. This implementation may be more standard, but there is no such additional request when using jquery before.

when I think both the front and back ends are on my own, can this mechanism be relaxed a little bit, instead of sending additional option requests? does axios have this configuration item?

Apr.13,2022

just go to the custom header


here are two articles for your reference
https://codeshelper.com/a/11...
https://codeshelper.com/q/10...


https://stackoverflow.com/que...

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-1b38799-2c12f.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-1b38799-2c12f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?