CORS Headers For Cloud Files Content Available Now

Filed in Product & Development by Megan Meza | December 13, 2012 11:00 am

Rackspace is pleased to announce the release of CORS (Cross Origin Resource Sharing) headers for Cloud Files[1] content. CORS headers can be used to open communication between the browser and Cloud Files.

As you may know, Cloud Files already supports the concept of Form Post[2], but when using JavaScipt, users will be burdened by the cross-site security protection that are enforced at the browser-level. However, there are many cases, like developing web applications or control panels, where the browser may need to interact with Cloud Files. To allow for this communication, users should make sure their JavaScript makes a preflight request to Cloud Files, which will send the browser a list of supported origins. If the origin of the browser is allowed, the browser can continue to make the PUTs and POSTs to Cloud Files.

Setting up CORS headers in Cloud Files is simple for API users (this feature is not yet available in our Control Panels). Using the API, set metadata on your containers for the following:

This is a list of origins allowed to make cross origin requests, and should be space separated

The length of time, in seconds, that you want the origin to hold the preflight results

These are headers that you allow in the request from the browser

CORS headers should be used in conjunction with Form Post[2] and Temp URL[3].  You can get details about using this feature in our Cloud Files API Developer guide[4].

If you have additional questions, please feel free to ask them here, contact our Fanatical Support Team or email me directly at[5].

  1. Cloud Files:
  2. Form Post:
  3. Temp URL:
  4. Cloud Files API Developer guide:

Source URL: