<p>I have updated the SSL certificates on my AKS service. But I am getting CORS error.
New certificates are getting reflected though.
Can someone provide a solution for it.
Here is the TLS part of my ingress file.</p>
<pre><code>spec:
  tls:
   - hosts:
     - &quot;prodazure.thesolarlabs.com&quot;
     secretName: tls-secret
</code></pre>

<p>A <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS" rel="nofollow noreferrer">CORS</a> error is related to the fact that you are issuing a request (fetch, XHR, ...) from a Javascript origin to another service, the destination/backend, and the origin service is not allowed to according to the headers provided by that destination service.</p>
<p>It means that your service, the origin, the one deployed in AKS, is trying contacting another service. In order to avoid the CORS errors, that service needs to provide an <code>Access-Control-Allow-Origin</code> that at least includes the host for the origin service, in your example:</p>
<pre><code>Access-Control-Allow-Origin: https://prodazure.thesolarlabs.com
</code></pre>
<p>Changing a SSL certificate by itself shouldn't be the cause of the CORS error: please, as mentioned, adapt your destination/backend service CORS configuration to point to the new host of the origin service, if you changed it, and be sure that you are configuring <code>Access-Control-Allow-Origin</code> for the right HTTP scheme, <code>https</code> in this case, as well.</p>
