Having an issue where I can login fine using OKTA provider. However, as soon as a call to /api/auth/okta/refresh?optional&env=myenv happens I get the error message of "name":"AuthenticationError","message":"Invalid X-Requested-With header" with a status code of 401.
If I hit /api/auth/okta/handler/frame?env=myenv I can see the okta-nonce cookie. But the session persistence is not there. If I inspect /api/auth/okta/refresh?optional&env=myenv the okta-refresh-token cookie is not there. I have offline_access scope setup but I'm a bit stuck in terms of what to try next. If someone has any other ideas that would be a huge help.