Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • hsitwox 7 posts 27 karma points
    1 week ago
    hsitwox
    0

    Umbraco Forms Antiforgery Token issue

    I am facing an issue while submitting the form, although I have done all those steps to add antiforgery token but still it is throwing error as below:-

    An unhandled exception occurred while processing the request. FormatException: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. System.Convert.FromBase64CharPtr(Char* inputPtr, int inputLength)

    AntiforgeryValidationException: The antiforgery token could not be decrypted. Microsoft.AspNetCore.Antiforgery.DefaultAntiforgeryTokenSerializer.Deserialize(string serializedToken)

    I am stuck and need help here to fix this ASAP as this is stalled my major work.

  • Yakov Lebski 590 posts 2344 karma points
    1 week ago
    Yakov Lebski
    0

    do you have multiple servers? if yes you need sync key storage or machine key, depend on version

    https://learn.microsoft.com/en-us/aspnet/core/security/data-protection/implementation/key-storage-providers?view=aspnetcore-8.0&tabs=visual-studio

  • hsitwox 7 posts 27 karma points
    3 days ago
    hsitwox
    0

    Hello Yakov,

    Many thanks for your reply but thing is that I am getting this issue on my local environment. Also, on Azure we have only single instance. But still this issue persists.

Please Sign in or register to post replies

Write your reply to:

Draft