[Cyberduck-trac] [Cyberduck] #6191: Swift: Setting "Access-Control-Allow-Origin" header

Cyberduck trac at trac.cyberduck.ch
Fri Sep 2 17:47:11 CEST 2011

#6191: Swift:  Setting "Access-Control-Allow-Origin" header
    Reporter:  markdeverter  |      Owner:
        Type:  defect        |     Status:  new
    Priority:  normal        |  Milestone:
   Component:  core          |    Version:  4.1
    Severity:  normal        |   Keywords:
Architecture:                |   Platform:
 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:
 name: "Access-Control-Allow-Origin"
 value: http://domain.foo

 Then download the object:
 curl -v http://cXXXX.rXX.cfX.rackcdn.com/filename
 * About to connect() to c3240.r40.cf2.rackcdn.com port 80 (#0)
 *   Trying connected
 < HTTP/1.1 200 OK
 < Server: nginx/0.7.65
 < Content-Type: image/jpeg
 < Content-Length: 19251
 < x-object-meta-access-control-allow-origin: http%3A%2F%2Fdomain.foo

Ticket URL: <http://trac.cyberduck.ch/ticket/6191>
Cyberduck <http://cyberduck.ch>
Open source FTP, SFTP, WebDAV, Cloud Files, Google Docs & Amazon S3 Browser for Mac & Windows.

More information about the Cyberduck-trac mailing list