Ouvert Fermé

"RequestVerificationToken" is not present #609


User avatar
0
RonaldR créé

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

  • ABP Framework version: v3.2
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue: we keep encountering this issue. we find it in almost all of our delete calls to the api. i also found it in the put when making a change in the administration -> settings -> lepton Theme page which comes with framework, so i set this pages error.

2020-11-29 11:21:45.941 -06:00 [INF] Request starting HTTP/2.0 PUT https://localhost:44355/api/lepton-theme-management/settings application/json 90 2020-11-29 11:21:45.971 -06:00 [INF] No CORS policy found for the specified request. 2020-11-29 11:21:45.973 -06:00 [INF] Executing endpoint 'Volo.Abp.LeptonTheme.LeptonThemeSettingsController.UpdateAsync (Volo.Abp.LeptonTheme.Management.HttpApi)' 2020-11-29 11:21:45.982 -06:00 [INF] Route matched with {area = "leptonThemeManagement", action = "Update", controller = "LeptonThemeSettings", page = ""}. Executing controller action with signature System.Threading.Tasks.Task UpdateAsync(Volo.Abp.LeptonTheme.Management.UpdateLeptonThemeSettingsDto) on controller Volo.Abp.LeptonTheme.LeptonThemeSettingsController (Volo.Abp.LeptonTheme.Management.HttpApi). 2020-11-29 11:21:45.984 -06:00 [DBG] Login Url: /Account/Login 2020-11-29 11:21:45.984 -06:00 [DBG] Login Return Url Parameter: ReturnUrl 2020-11-29 11:21:45.984 -06:00 [DBG] Logout Url: /Account/Logout 2020-11-29 11:21:45.984 -06:00 [DBG] ConsentUrl Url: /Consent 2020-11-29 11:21:45.984 -06:00 [DBG] Consent Return Url Parameter: returnUrl 2020-11-29 11:21:45.984 -06:00 [DBG] Error Url: /Account/Error 2020-11-29 11:21:45.984 -06:00 [DBG] Error Id Parameter: errorId 2020-11-29 11:21:45.987 -06:00 [ERR] The required antiforgery header value "RequestVerificationToken" is not present. 2020-11-29 11:21:45.988 -06:00 [INF] Authorization failed for the request at filter 'Volo.Abp.AspNetCore.Mvc.AntiForgery.AbpAutoValidateAntiforgeryTokenAuthorizationFilter'. 2020-11-29 11:21:45.996 -06:00 [INF] Executing HttpStatusCodeResult, setting HTTP status code 400 2020-11-29 11:21:45.996 -06:00 [INF] Executed action Volo.Abp.LeptonTheme.LeptonThemeSettingsController.UpdateAsync (Volo.Abp.LeptonTheme.Management.HttpApi) in 13.4389ms 2020-11-29 11:21:45.996 -06:00 [INF] Executed endpoint 'Volo.Abp.LeptonTheme.LeptonThemeSettingsController.UpdateAsync (Volo.Abp.LeptonTheme.Management.HttpApi)'


1 Réponse (s)
  • User Avatar
    0
    maliming créé
    Équipe d'assistance Fullstack Developer

    hi RonaldR

    You can try to upgrade to 3.3.1.

    https://github.com/abpframework/abp/pull/5728

    If the upgrade package does not solve your problem. you can try to create a template project and share the steps to reproduce the problem to me, thank you

Made with ❤️ on ABP v8.2.0-preview Updated on mars 25, 2024, 15:11