fix: honor requested allow origin settings properly (#17789)

fixes #17778
This commit is contained in:
Harshavardhana
2023-08-02 20:41:21 -07:00
committed by GitHub
parent 1664fd8bb1
commit 4a4950fe41
4 changed files with 7 additions and 9 deletions
+1 -1
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", "*")
expectedMap.Set("Access-Control-Allow-Origin", "http://foobar.com")
expectedMap["Access-Control-Expose-Headers"] = []string{
"Date",
"Etag",