Ok, apparently I was "holding it wrong". (kudos to dwfreed from IRC for helping) When I send the Origin Header correct, I will also receive the correct CORS header: root@rgw-1:~# curl -s -D - -o /dev/null --header "Host: kervyn.de" -H "Origin: https://example.com" 'http:// [fd00:2380:0:24::51]:7480/bb-test-bucket/hello.txt' HTTP/1.1 200 OK Content-Length: 12 Accept-Ranges: bytes Last-Modified: Wed, 06 Apr 2022 08:33:55 GMT x-rgw-object-type: Normal ETag: "ed076287532e86365e841e92bfc50d8c" x-amz-request-id: tx00000a43b06742d5fef2d-00624d6247-8ac9b571-eu-central-1 Access-Control-Allow-Origin: https://example.com Vary: Origin Access-Control-Allow-Methods: GET Access-Control-Max-Age: 3000 Content-Type: application/octet-stream Date: Wed, 06 Apr 2022 09:49:59 GMT Thank you all :) Am Mi., 6. Apr. 2022 um 11:01 Uhr schrieb Boris Behrens <bb@xxxxxxxxx>: > Hi, > > I just try to get CORS header to work (we've set them always on a front > facing HAproxy, but a customer wants their own). > > I've set CORS policy via aws cli (please don't mind the test header): > $ cat cors.json > {"CORSRules": [{"AllowedOrigins": ["https://example.com"],"AllowedHeaders": > ["test"],"AllowedMethods": ["HEAD", "GET", "PUT", "POST"],"MaxAgeSeconds": > 3000}]} > > $ aws s3api put-bucket-cors --bucket bb-test-bucket --cors-configuration > file://cors.json > > $ s3cmd --config info s3://bb-test-bucket > s3://bb-test-bucket/ (bucket): > Location: eu > Payer: BucketOwner > Expiration Rule: none > Policy: none > CORS: <CORSConfiguration xmlns=" > http://s3.amazonaws.com/doc/2006-03-01/ > "><CORSRule><AllowedMethod>GET</AllowedMethod><AllowedMethod>PUT</AllowedMethod><AllowedMethod>HEAD</AllowedMethod><AllowedMethod>POST</AllowedMethod><AllowedOrigin> > https://example.com > </AllowedOrigin><AllowedHeader>test</AllowedHeader><MaxAgeSeconds>3000</MaxAgeSeconds></CORSRule></CORSConfiguration> > ACL: *anon*: READ > ACL: 4a60852b-9e03-4346-9c26-19a2b3913f63: FULL_CONTROL > URL: http://bb-test-bucket.kervyn.de/ > > But I don't get any CORS header back when I query the radosgw: > root@rgw-1:~# curl -s -D - -o /dev/null --header "Host: kervyn.de" > 'http://[fd00:2380:0:24::51]:7480/bb-test-bucket/hello.txt' > HTTP/1.1 200 OK > Content-Length: 12 > Accept-Ranges: bytes > Last-Modified: Wed, 06 Apr 2022 08:33:55 GMT > x-rgw-object-type: Normal > ETag: "ed076287532e86365e841e92bfc50d8c" > x-amz-request-id: tx00000bf7cf6cbcc6c8c93-00624d55e7-895784b1-eu-central-1 > Content-Type: application/octet-stream > Date: Wed, 06 Apr 2022 08:57:11 GMT > > Am I missing a config option? > I couldn't find anything helpful in the documentation. > > Cheers > Boris > -- > Die Selbsthilfegruppe "UTF-8-Probleme" trifft sich diesmal abweichend im > groüen Saal. > -- Die Selbsthilfegruppe "UTF-8-Probleme" trifft sich diesmal abweichend im groüen Saal. _______________________________________________ ceph-users mailing list -- ceph-users@xxxxxxx To unsubscribe send an email to ceph-users-leave@xxxxxxx