title: How can I use github to host an external CSS file?
body: <p>I uploaded my css to github, then went to the file on the site and clicked the raw option. I tried adding it to a webpage, but chrome is giving me the following errors:</p>
  <blockquote>
  <p>Resource interpreted as Stylesheet but transferred with MIME type text/plain:
  &quot;https://raw.githubusercontent.com/me/my-repo/master/style.css&quot;.</p>
  </blockquote>
  <p>and</p>
  <blockquote>
  <p>Cross-Origin Read Blocking (CORB) blocked cross-origin response <a href="https://raw.githubusercontent.com/me/my-repo/master/style.css" rel="nofollow noreferrer">https://raw.githubusercontent.com/me/my-repo/master/style.css</a> with MIME type text/plain. See <a href="https://www.chromestatus.com/feature/5629709824032768" rel="nofollow noreferrer">https://www.chromestatus.com/feature/5629709824032768</a> for more details.</p>
  </blockquote>
  <p>What can I do to add this CSS successfully? I'm adding it with javascript too:</p>
  <pre><code>var link = document.createElement('link');
  link.setAttribute('rel', 'stylesheet');
  link.setAttribute('type', 'text/css');
  link.setAttribute('href', 'https://raw.githubusercontent.com/me/my-repo/master/style.css');
  document.getElementsByTagName('head')[0].appendChild(link);
  </code></pre>