title: Mixed Content problem and 413 (Request Entity Too Large)
body: <p>I want to upload an image in asp.net MVC, the website is HTTPS and the API is HTTP and occurred below error (I found several questions about this problem but couldn't solve the problem):</p>
  <blockquote>
  <p>Mixed Content The page at was loaded over HTTPS but requested an
  insecure resource This request has been blocked the content must be
  served over HTTPS</p>
  </blockquote>
  <p>I add this code to web.config</p>
  <pre><code>&lt;httpProtocol&gt;
          &lt;customHeaders&gt;
              &lt;add name=&quot;Content-Security-Policy&quot; value=&quot;upgrade-insecure-requests&quot; /&gt;
          &lt;/customHeaders&gt;
      &lt;/httpProtocol&gt;
  </code></pre>
  <p>The new error occurred</p>
  <blockquote>
  <p>413 (Request Entity Too Large)</p>
  </blockquote>
  <p>But the size of image is 50 kb</p>