We added on-premises applications for remote access through Application Proxy in Azure Active Directory and integrated MFA on ADFS.
After registering applications on Azure, applications are throwing "Access to XMLHttpRequest at'https://login.microsoftonline.com/**/oauth2/authorize?response_type=code&client_id=**&scope=openid&nonce=**&redirect_uri=https//abc.com%2fAB%2f&
state=AppProxyState%3a%7b%22InvalidTokenRetry%22%3anull%2c%22IsMsofba%22%3afalse%2c
%22OriginalRawUrl:https//abc.com/**RequestProfileId:**EndOfStateParam%23'
(redirected from https://abc.xyz.com/......) from origin (redirected from https://abc.xyz.com) has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
This error is coming after 20-30 minutes of actively/inactively usage of applications. User opens the applications work on it for around 20-30 minutes and suddenly on AJAX request from application, user receives afore stated error in console.