OPTIONS
The request is a preflight request, mainly to determine whether the target server allows cross-domain requests, and the real HTTP
request .
For cross-domain requests, refer to the article " In-depth understanding: Cross-domain "; for requests, refer to the article " OPTIONS Request in HTTP ".OPTIONS
After understanding OPTIONS
that it is a pre-request, how to block the OPTIONS request? The answer is simple, just type Filter
in -method:OPTIONS
!
Filter
It is also supported if you want to mask other parameters .