fix: when Origin: null is set return back '*' for allow origins (#17651)

This commit is contained in:
jiuker
2023-07-16 03:15:06 +08:00
committed by GitHub
parent 341a89c00d
commit d118031ed6
3 changed files with 22 additions and 11 deletions

View File

@@ -219,7 +219,7 @@ func (s *TestSuiteCommon) TestBucketSQSNotificationWebHook(c *check) {
func (s *TestSuiteCommon) TestCors(c *check) {
expectedMap := http.Header{}
expectedMap.Set("Access-Control-Allow-Credentials", "true")
expectedMap.Set("Access-Control-Allow-Origin", "http://foobar.com")
expectedMap.Set("Access-Control-Allow-Origin", "*")
expectedMap["Access-Control-Expose-Headers"] = []string{
"Date",
"Etag",