aboutsummaryrefslogtreecommitdiff
path: root/weed/s3api/cors/cors_test.go
diff options
context:
space:
mode:
author粒粒橙 <i@llc.moe>2025-11-25 22:19:34 +0800
committerGitHub <noreply@github.com>2025-11-25 06:19:34 -0800
commita24c31de06093337cd31e42ed94de67ce1d5c95b (patch)
tree5d68d38ff8f2b918a9c2cd25a84dcfd4dece7289 /weed/s3api/cors/cors_test.go
parent935c641f2557ce08c05e97ea4cac178e872d06d7 (diff)
downloadseaweedfs-a24c31de06093337cd31e42ed94de67ce1d5c95b.tar.xz
seaweedfs-a24c31de06093337cd31e42ed94de67ce1d5c95b.zip
S3: Add `Vary` header for non-wildcard AllowOrigin (#7547)
Diffstat (limited to 'weed/s3api/cors/cors_test.go')
-rw-r--r--weed/s3api/cors/cors_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/s3api/cors/cors_test.go b/weed/s3api/cors/cors_test.go
index 1b5c54028..8494a284d 100644
--- a/weed/s3api/cors/cors_test.go
+++ b/weed/s3api/cors/cors_test.go
@@ -480,6 +480,7 @@ func TestApplyHeaders(t *testing.T) {
"Access-Control-Allow-Headers": "Content-Type",
"Access-Control-Expose-Headers": "ETag",
"Access-Control-Max-Age": "3600",
+ "Vary": "Origin",
},
},
{
@@ -493,6 +494,7 @@ func TestApplyHeaders(t *testing.T) {
"Access-Control-Allow-Origin": "http://example.com",
"Access-Control-Allow-Methods": "GET",
"Access-Control-Allow-Credentials": "true",
+ "Vary": "Origin",
},
},
}