Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How do you set Access-Control-Allow-Credentials CORS header

I see that SWIFT supports Access-Control-Allow-Origin and Access-Control-Allow-Headers, but how do you get it to send Access-Control-Allow-Credentials headers? Chrome preflight requests are failing to allow POSTs to SWIFT containers (with a policy) because ORIGIN pre-flight requests don't return an Access-Control-Allow-Credentials header.

How can I make SWIFT do this, when the ORIGIN request is on the container to which the user wants to upload?