title: "Authentication not in correct format" when setting Azure Blob Service Properties (REST API)
body: <p>I am trying to set CORS rules on my Azure Blob Storage account by following <a href="http://msdn.microsoft.com/en-us/library/windowsazure/hh452235.aspx" rel="noreferrer">these instructions</a>.</p>
  
  <p>This is the error I receive after making my request:</p>
  
  <blockquote>
    <p><strong>400 Authentication information is not given in the correct format. Check the value of Authorization header</strong></p>
  </blockquote>
  
  <p>Request URL:</p>
  
  <pre><code>PUT https://[MyAccountName].blob.core.windows.net/?restype=service&amp;comp=properties
  </code></pre>
  
  <p>Request header:</p>
  
  <pre><code>x-ms-version: 2013-08-15
  x-ms-date: Tue, 25 Feb 2014 13:02:00 GMT
  Authorization: SharedKey
  [MyAccountName]: [MyAccountKey]
  Content-Length: 329
  Host: [MyAccountName].blob.core.windows.net
  </code></pre>
  
  <p>Request body:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;StorageServiceProperties&gt;
      &lt;Cors&gt;   
            &lt;CorsRule&gt;
                  &lt;AllowedOrigins&gt;http://www.example.com&lt;/AllowedOrigins&gt;
                  &lt;AllowedMethods&gt;GET&lt;/AllowedMethods&gt;
                  &lt;ExposedHeaders&gt;x-ms-meta-data*,x-ms-meta*&lt;/ExposedHeaders&gt;
                  &lt;AllowedHeaders&gt;x-ms-meta-target*,x-ms-meta*&lt;/AllowedHeaders&gt;
                  &lt;MaxAgeInSeconds&gt;200&lt;/MaxAgeInSeconds&gt;
          &lt;/CorsRule&gt;
      &lt;Cors&gt;
  &lt;/StorageServiceProperties&gt;
  </code></pre>