We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
allow_hosts
OPTIONS
samesite
Cookie
/web/**
/api/generic/temporary/upload
CrossOrigin
Origin Header
CORS
Header
Origin
--------Spring对OPTIONS请求匹配到多个HandlerMethod这种情况的处理-----------
generic服务现在临时/非临时两个上传接口都是允许所有Origin的,因为OPTIONS请求比实际请求少了一些参数,Spring没办法判断OPTIONS请求该使用哪个HandlerMethod,所以只要匹配到的多个HandlerMethod里有一个包含CORS配置就会允许所有允许所有请求,参考
HandlerMethod
目前upload有两个接口/{projectId}/{repoName}/**和/temporary/upload/{projectId}/{repoName}/**,OPTIONS请求无法判断该用哪个,比如projectId=temporary,repoName=upload这种情况,因为临时上传接口上配置了CORS,所以会导致两个接口都允许所有Origin
/{projectId}/{repoName}/**
/temporary/upload/{projectId}/{repoName}/**
projectId=temporary
repoName=upload
Sorry, something went wrong.
cnlkl
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: