Open Closed

The required antiforgery cookie ".AspNetCore.Antiforgery.J3gFNQQI4NQ" is not present #1576


User avatar
0
NahlaIbrahim created
  • ABP Framework version: v4.2.2 Commerical
  • UI type: Razor Pages
  • DB provider: EF Core / SQL
  • Tiered (MVC) or Identity Server Separated (Angular): No
  • Exception message and stack trace: [ERR] The required antiforgery cookie ".AspNetCore.Antiforgery.J3gFNQQI4NQ" is not present.
  • Steps to reproduce the issue:"
  • I have two application and I am trying to login using OpenId from one to another
  • it is working fine on local , issue occured only on Server (The required antiforgery cookie ".AspNetCore.Antiforgery.J3gFNQQI4NQ" is not present )

2021-07-13 17:32:15.766 +03:00 [ERR] The required antiforgery cookie ".AspNetCore.Antiforgery.J3gFNQQI4NQ" is not present. 2021-07-13 17:32:15.766 +03:00 [INF] Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'. 2021-07-13 17:32:15.769 +03:00 [INF] Executing HttpStatusCodeResult, setting HTTP status code 400

How I can Solve this issue on Server ?

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

8 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Are you using the HTTPS on Server?

    You can refer to this: https://community.abp.io/articles/patch-for-chrome-login-issue-identityserver4-samesite-cookie-problem-weypwp3n

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    NahlaIbrahim created

    hi , Yes I am using HTTPS on server Not HTTP.

    I tried solution in refered link but issue is still exist

    2021-07-14 10:48:41.818 +03:00 [ERR] The required antiforgery cookie ".AspNetCore.Antiforgery.J3gFNQQI4NQ" is not present. 2021-07-14 10:48:41.818 +03:00 [INF] Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'. 2021-07-14 10:48:41.818 +03:00 [INF] Executing HttpStatusCodeResult, setting HTTP status code 400

    I also tried to login from firefox , i faced same issue in chrome

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    alper created
    Support Team Director

    you may need to clear your browser cookies. both website are HTTPS?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    NahlaIbrahim created

    Yes both websites are HTTPS

    I tried to clear cookies and try again, it gives me same issue.

    2021-07-14 12:08:02.407 +03:00 [ERR] The required antiforgery cookie ".AspNetCore.Antiforgery.J3gFNQQI4NQ" is not present. 2021-07-14 12:08:02.407 +03:00 [INF] Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'. 2021-07-14 12:08:02.407 +03:00 [INF] Executing HttpStatusCodeResult, setting HTTP status code 400

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Are you using reverse proxy for the websites?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    NahlaIbrahim created

    hi

    No we don't use reverse proxy for the websites

    we are using two ABP Apps, one as a server and the other is a client

    they are both hosted on the same server

    and the client is calling the server for External Login directly

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can I check it remotely?

    https://zoom.us/j/96694516779?pwd=ZTZ1K09KQ1I1WkNGK2NHMEhzWVMzQT09

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 09, 2026, 11:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.