tl;dr - The application gives a CORS error after an hour if page is left idle.
We have an internal app that is accessible to the external network using Azure App Proxy, the application uses Azure MSAL (OpenID connect)for AD and MFA authentication.
We are using MSAL to get token and refresh it every 50mins (Since the token gets expired after an hour).
The application stores AzureAppProxyAccessCookie that disappears after an hour which is causing the CORS error for the resource request.
Wanted to know how i could update the AccessCookie stored in the browser so that the browser doesn't throw CORS error. Looked through a lot of docs, but couldn't figure it out, would appreciate some help from this community.
I have referred these docs:
cors
application-proxy-configure-native-client-application
active-directory-configurable-token-lifetimes
application-proxy-configure-cookie-settings