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 ?


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

  • 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

  • User Avatar
    0
    alper created
    Support Team Director

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

  • 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

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Are you using reverse proxy for the websites?

  • 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

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Can I check it remotely?

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

  • 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.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11