web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

BC 26.1 OnPrem, Android Chrome Access to Phone client, Antiforgery token validation failed

(4) ShareShare
ReportReport
Posted on by 65
Trying to access our environment with chrome on android automatically logs me off everytime.
 
Thats the issue, what can the problem be? 
 
 
On Chrome on the windows pc its working without any problem.
 
Category: Microsoft.Dynamics.Nav.WebClient.QueryBasedAntiforgeryProtectionMiddleware
EventId: 0
ConnectionId: 0HNDCQSDLVDSJ
RequestId: 0HNDCQSDLVDSJ:0000001C
RequestPath: /xxx/csh
MemberName: Invoke
FilePath: s:\repo\src\Platform\Client\Web\Prod.Client.WebCoreApp\Middleware\QueryBasedAntiforgeryProtectionMiddleware.cs
LineNumber: 57
ExceptionType: Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException
 Antiforgery token validation failed
Exception: 
Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The required antiforgery cookie ".AspNetCore.Antiforgery.47DEQpj8HBQ" is not present.
   at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.ValidateRequestAsync(HttpContext httpContext)
   at Microsoft.Dynamics.Nav.WebClient.QueryBasedAntiforgeryProtectionMiddleware.Invoke(HttpContext context) in s:\repo\src\Platform\Client\Web\Prod.Client.WebCoreApp\Middleware\QueryBasedAntiforgeryProtectionMiddleware.cs:line 53
I have the same question (0)
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,150 Super User 2025 Season 2 on at
    1. Clear Android Chrome's Site Data for your BC URL (Most Effective):

       

      • On your Android device, open Chrome settings.

      • Go to Site settings -> All sites.

      • Find your Business Central URL (e.g., https://yourserver/yourinstance).

      • Tap on it and select Clear & reset or Clear data.

      • Crucially, fully close Chrome and re-open it before trying to access BC again.


      •  

    2.  

      Verify Cookie Permissions for your BC URL in Android Chrome:

       

      • In Android Chrome, go to your Business Central login page.

      • Tap the lock icon or "i" icon in the address bar.

      • Select Site settings or Permissions.

      • Ensure that Cookies are set to Allow for your Business Central site. Also check if any other permissions are overly restrictive.


      •  

    3.  

      Try Incognito Mode on Android Chrome:

       

      • Open an Incognito tab and attempt to log into Business Central. This bypasses many standard browser settings and can help determine if it's a profile-specific issue.


      •  

    4.  

      Disable "Block third-party cookies" (temporarily for testing):

       

      • In Android Chrome settings, navigate to Site settings -> Cookies.

      • If "Block third-party cookies" is enabled, try disabling it temporarily. Although the antiforgery cookie is typically first-party, some configurations can cause misinterpretation.


      •  

    5.  

      Restart the Android Device: A full device restart can sometimes resolve temporary glitches affecting app and browser behavior.



    6.  

    This issue is a specific interaction between Business Central's web client architecture and Android Chrome's security/cookie handling, not a fundamental .NET problem on the server side (as Windows Chrome works).

    ✅ Mark this answer as verified if it helps you.

  • Suggested answer
    YUN ZHU Profile Picture
    95,765 Super User 2025 Season 2 on at
    Does this problem occur when using the mobile app?
    This may also be a Chrome issue. Try another browser, such as Edge.
     
    Hope this helps
    Thanks.
    ZHU
  • Verified answer
    Badaboom Profile Picture
    65 on at
    Chrome Version on the Android device was not actual.
    After updating it, it works

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,856

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 765 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 581 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans