latest octopus radosgw missing cors header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx




[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux