issues
search
ReinerLau1
/
Blog
Just a blog
MIT License
0
stars
0
forks
source link
OPTIONS请求方法及使用场景
#272
Closed
ReinerLau1
closed
2 years ago
ReinerLau1
commented
2 years ago
概念
OPTIONS是除了GET和POST之外的其中一种 HTTP请求方法
用于请求获得由
Request-URI
标识的资源
可以在采取具体资源请求之前,决定对该资源采取何种必要措施,或者了解服务器的性能
该请求方法的响应不能缓存
ReinerLau1
commented
2 years ago
用途
获取服务器支持的所有HTTP请求方法
用来检查访问权限。例如:在进行 CORS 跨域资源共享时,对于复杂请求,就是使用 OPTIONS 方法发送嗅探请求,以判断是否有对指定资源的访问权限
概念
Request-URI
标识的资源