Okta keys request gives an empty response

I am using okta angular signin widget in my angular application. It works without an issue in Google Chrome.

I use Cypress for test automation. It uses electron browser, which uses chromium engine for testing. In cypress, after the username and password is entered and submitted, I get an empty response error from okta /oauth2/default/v1/keys path, as shown in below screenshots.

Any idea why it gives this error? Any help to further troubleshoot this is appreciated. Thanks.