• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » CORS Header in Rackspace Cloud Files

By Abhishek Ghosh September 30, 2014 10:08 am Updated on September 30, 2014

CORS Header in Rackspace Cloud Files

Advertisement

This guide shows how to set CORS Header in Rackspace Cloud Files to Allow or Restrict usage over HTTPS protocol and how to get the headers. We talked about CORS in a previously published article. We can set CORS Header in Rackspace Cloud Files on individual files as well as container (quite difficult method) and purge the file, cURL to check the headers.

 

CORS Header in Rackspace Cloud Files : Importance and Official Documentation

 

Setting the right CORS Header in Rackspace Cloud Files is important with HSTS, SPDY enabled fronted, else the modern browsers might block loading things based on server configuration, like we can set CORS rules on Nginx. You can test CORS with latest Chrome browser’s console tool against your webpage, to check whether anything is getting blocked. Official documentations are available here :

Vim
1
2
http://www.rackspace.com/blog/cors-headers-for-cloud-files-content-available-now/
http://docs.rackspace.com/files/api/v1/cf-devguide/content/Assigning_CORS_Headers_to_Requests-d1e2120.html

CORS-Header-in-Rackspace-Cloud-Files

 

CORS Header in Rackspace Cloud Files : Methods

 

We can set CORS from Rackspace Cloud account by going to the container and clicking on the file and selecting a value and hitting the Return / Enter key. By default, origin will be set to https://mycloud.rackspace.com, we need to delete the value and add our own domain as origin. You must purge the file (if you have set a higher value of max age like 50 yrs like me :p ). You can curl to get the headers :

Advertisement

---

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
curl -I https://5bf5085ff6a0ff8a98e0-fbacee3e259cb36f1f312cedca614c38.ssl.cf2.rackcdn.com/icon-font.css
# output
HTTP/1.1 200 OK
Origin: https://thecustomizewindows.com
Last-Modified: Mon, 29 Sep 2014 21:39:20 GMT
ETag: ed522499b55558e5d2bd4851fe30ee96
X-Timestamp: 1412026759.06361
Access-Control-Allow-Credentials: https://thecustomizewindows.com
Access-Control-Allow-Origin: https://thecustomizewindows.com
Content-Type: text/css
X-Trans-Id: tx0792e29d4a23410cbaee0-00542a7850ord1
Cache-Control: public, max-age=25920000
Expires: Mon, 27 Jul 2015 09:30:56 GMT
Date: Tue, 30 Sep 2014 09:30:56 GMT
Connection: keep-alive

You should set CORS on NGINX as separate blocks to allow various origin like specifically for 5bf5085ff6a0ff8a98e0-fbacee3e259cb36f1f312cedca614c38.ssl.cf2.rackcdn.com in the above example. Multiple domain name CORS block is accept unless there is any contradiction. Google Ads add the CORS from account settings, thats why we never need to add Google specific CORS. But, YouTube cookie domain must be allowed, you should periodically check on Chrome on random pages to catch any blocked material.

Cyberduck is a nice tool, read it :

Vim
1
https://trac.cyberduck.io/wiki/help/en/howto/cloudfiles

We can set CORS on a container to inherit the properties by POST method. You can see the discussion here :

Vim
1
https://github.com/rackspace/pyrax/issues/364

and use our great CocoaRestfulClient to do anything!

This Article Has Been Shared 803 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to CORS Header in Rackspace Cloud Files

  • Cloud Computing – Risks of Free Public Cloud you are using

    Cloud Computing, specially the free public cloud computing has potential risks. Most users are not even aware that they are actually using Cloud Computing.

  • Cloud Computing, Virtualization and WebHosting Magazine – Announcement

    Cloud Computing, Virtualization and WebHosting Magazine, available as print version and online edition will be published by The Customize Windows Media Group.

  • Engine of Your Cloud is The Hypervisor

    Engine of Your Cloud is The Hypervisor. Cloud is extensive use of virtualization to create multiple virtual servers on a single physical server to handle the demands.

  • HSDPA/3G USB Modem Brands and Models : Non Vendor-locked

    HSDPA/3G USB Modem Brands and Models from reputed brands are Non Vendor-locked, are feature rich,offers choice more than bundled with Internet Service Provider.

  • Setup WordPress on OpenShift with Domain

    Here is a full guide to rightly setup WordPress on OpenShift PaaS with domain name and avoid any possible problem with OpenShift’s App Name. There is no meaning of repeating the initial steps to Setup WordPress on OpenShift, we have two years old guide plus one year old video guide to setup WordPress on OpenShift. […]

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (22.1K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Ways To Make Sure Your Online Course Outshine Others July 3, 2022
  • Will Smart Factories Become the New Assembly Line? July 2, 2022
  • The Cost of Doing Business as a Handyman July 1, 2022
  • Samsung Galaxy S22 Ultra: Long Term Review June 30, 2022
  • How to Make the Most of Your S Pen (S22 Ultra) June 29, 2022

About This Article

Cite this article as: Abhishek Ghosh, "CORS Header in Rackspace Cloud Files," in The Customize Windows, September 30, 2014, July 4, 2022, https://thecustomizewindows.com/2014/09/cors-header-rackspace-cloud-files/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2022 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy