• 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 376 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 (24.3K 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

  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023

About This Article

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

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

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

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

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT