Hi,
For our product we were using the okta sdk 3.x, now I tried to upgrade it with the latest one. but earlier there was okta.service.ts and we used handleAuthentication() but now it is replaced with handleRedirect(). It is working fine in few of my environments/servers but when I try to deploy the same code in the server where we have base href with webcdn url, it is failing at okta.handleRedirect() with given error:
SecurityError: Failed to execute ‘replaceState’ on ‘History’: A history state object with url webcdn-business .ppe .xyz/company/implicit/callback can’t be created in document with origin ‘myaccount-business .ppe .xyz.com’ and URL myaccount-business .ppe .xyz/company/implicit/callback?code=rqj0…flo&state=8dhIcr…
And if I’m checking for the okta-token-storage it is coming as {}.
My server is totally secure but not sure why it’s failing where we have webcdn. Please help.