How does Google Chrome block OPTIONS requests?

OPTIONSThe request is a preflight request, mainly to determine whether the target server allows cross-domain requests, and the real HTTPrequest .

insert image description here

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 OPTIONSthat it is a pre-request, how to block the OPTIONS request? The answer is simple, just type Filterin -method:OPTIONS!

insert image description here

FilterIt is also supported if you want to mask other parameters .

insert image description here

Guess you like

Origin blog.csdn.net/yilovexing/article/details/130969856