title: ASP.NET MVC 5 bundled css works fine in chrome, but not any other browser
body: <p>As the title says, when I try to load my site in any other browser apart from chrome, the site has no styling.</p>
  
  <p>My bundles don't contain the name of the folder they're in (I know this is a common issue with bundling) and the fact that chrome loads the bundles fine shows there isn't an actual issue with the bundle.</p>
  
  <p>If I go to the folder path for the bundled css (e.g <code>&lt;ip&gt;/Content/Allcss?v=Eze8tJIZiYOA13hExK1v1hyjgjptGZUujs0uqxcErPY1</code>) in Chrome, it loads the css stylesheet, however in all other browsers I just get an error:</p>
  
  <blockquote>
    <p>Object reference not set to an instance of an object</p>
  </blockquote>
  
  <p>Head of layout:</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;title&gt;@ViewBag.Title&lt;/title&gt;
      &lt;link 
         href="https://unpkg.com/tailwindcss@("@^1.0/dist/tailwind.min.css")" 
         rel="stylesheet"&gt;
      &lt;link href="https://fonts.googleapis.com/css? 
         family=Montserrat:400,800&amp;display=swap" rel="stylesheet"&gt;
      @Styles.Render("~/Content/Allcss")
      @Scripts.Render("~/bundles/modernizr")
   &lt;/head&gt;
  </code></pre>
  
  <p>and my bundle config:</p>
  
  <pre><code>public static void RegisterBundles(BundleCollection bundles)
      {
          bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
              "~/Scripts/jquery-{version}.js"));
  
          bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
              "~/Scripts/jquery.validate*"));
  
          // Use the development version of Modernizr to develop with and learn from. Then, when you're
          // ready for production, use the build tool at https://modernizr.com to pick only the tests you need.
          bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
              "~/Scripts/modernizr-*"));
  
          bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
              "~/Scripts/bootstrap.js"));
  
          bundles.Add(new StyleBundle("~/Content/Allcss").Include(
              "~/Content/bootstrap.css",
              "~/Content/site.css"));
      }
  </code></pre>
  
  <p>Update::</p>
  
  <p>Turns out my PostAuthenticateRequest method was trying to authorize viewing the css and failing, this has been solved</p>