Anti Forgery token exception is encountered while trying to download files when user is logged in as Okta OpenIdConnect protocol

Anti Forgery token exception is encountered while trying to download files when user is logged in as Okta OpenIdConnect protocol. Although we’re able to download the same files when login via custom based authentication. What could be the potential cause of this issue.

Due to this, we have to rollback our migration to Sign in Users using Okta. Please help as we’re stuck on this issue for a long time and couldn’t find any possible solution on the internet. Our app is using ASP.NET MVC framework.

I found this article that might prove useful: Anti-forgery token and anti-forgery cookie related issues | Microsoft Tech Community

Since this sounds like a .NET issue and not Okta-specific, you may want to check similar Microsoft or other forums for advice on how to resolve