Mysticbinary

WEB容器开启、关闭OPTIONS方法

发现

请求包随意,响应包信息如下:

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 5.2
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Fri, 17 Apr 2020 03:09:15 GMT
Connection: close
Content-Length: 43251

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    ...

特征:

# 响应头有这4个字段
Server: Microsoft-IIS/7.5
X-AspNetMvc-Version: 5.2
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET

关闭options方案

关闭options得根据服务器使用的WEB容器种类来决定方法,下面列举主流的。

posted on 2020-04-17 11:50  Mysticbinary  阅读(3443)  评论(0编辑  收藏  举报

导航