-
-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift: Setting "Access-Control-Allow-Origin" header #6191
Comments
I don't think that headers such access control headers or others such as |
My bad, I meant to provide curl commands that showed normal API behavior.
|
Replying to [comment:3 markdeverter]:
Thanks for the snipped. That is interesting as it is a undocumented feature from my knowledge. I will dig into this further. |
See also Cloud Files Supports 12 New Headers. |
Still reproducible on version 4.3.1 (Windows) with CloudFiles. Setting "Access-Control-Allow-Origin" header produces "X-Object-Meta-Access-Control-Allow-Origin". Should I try some fresh builds? |
Thank you! Using older version helps. I've tried 4.1.3 and headers are properly set. |
When updating an object to set custom headers and setting the "Access-Control-Allow-Origin" header, on download that header is clobbered to "x-object-meta-access-control-allow-origin". When setting this header using the Rackspace API, it does not get altered in any way.
To reproduce, open CD, connect to Swift, open a container and select an object, right-click Info, Metadata, add Custom Header:
Then download the object:
Attachments
Allow_setting_non_meta_headers.patch
(16.1 KiB)The text was updated successfully, but these errors were encountered: