- 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)
- 
    0hi 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 
- 
    0hi , 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 
- 
    0you may need to clear your browser cookies. both website are HTTPS? 
- 
    0Yes 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 
- 
    0hi Are you using reverse proxy for the websites? 
- 
    0hi 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 
- 
    0Can I check it remotely? https://zoom.us/j/96694516779?pwd=ZTZ1K09KQ1I1WkNGK2NHMEhzWVMzQT09 
- 
    0This question has been automatically marked as stale because it has not had recent activity. 
 
                                