通常会显示两个来电,飞行前和实际请求。这有时很烦人。有没有办法隐藏飞行前请求?
或者是否有基于标题过滤某些请求的插件?
答案 0 :(得分:192)
The quickest way to do this is to filter on -method:OPTIONS
.
Explanation: all pre-flight requests are via the HTTP OPTIONS method (opposed to POST or GET). This filter says "not method OPTIONS".
Note the leading hyphen because if you forget it, you'll only show pre-flight requests.
答案 1 :(得分:1)