Copied to clipboard

Flag this post as spam?

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


  • René 327 posts 852 karma points
    Aug 29, 2017 @ 21:05
    René
    0

    Umbraco forms - RequestVerificationToken

    Hi I have used forms a lot, and love it.

    I have this strange error.

    Umbraco version 7.6.5 assembly: 1.0.6428.37121 Current installed version of Umbraco Forms: "6.0.2"

    The form is rendering and all is working.

    When i try to send the form i get this error:

    enter image description here

    Serverfejl i programmet '/'. Ressourcen blev ikke fundet. Beskrivelse: HTTP 404. Den ressource, du søger efter, eller en af dens afhængigheder, er muligvis blevet fjernet eller er ikke tilgængelig i øjeblikket. Kontroller, om følgende URL-adresse er stavet korrekt.

    Ønsket URL-adresse: /umbraco/RenderMvc

    Sorry for the danish ;)

    I get this in the url :

    http://domain.local/contact/?__RequestVerificationToken=hhIWNkQUkDw0mIzEA

    Any suggestion?

    Kind regards René

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Aug 30, 2017 @ 06:09
    Dennis Aaen
    1

    Hi René

    Have you seen the documentation about how to enable AntiForgeryToken

    https://our.umbraco.org/documentation/Add-ons/UmbracoForms/Developer/Configuration/#configuration

    Hope this helps,

    /Dennis

  • René 327 posts 852 karma points
    Aug 31, 2017 @ 07:53
    René
    0

    HI Dennis

    Thanks for your time answering, but it did not help.

    I have to set it to False/True and it changes nothing.

    <setting key="EnableAntiForgeryToken" value="True" />
    

    I get this error in the console:

    enter image description here

    Do you have any suggestions?

    René

  • René 327 posts 852 karma points
    Aug 31, 2017 @ 08:27
    René
    100

    Hi Dennis

    I found the error.. it was mine :(

    I had wrapped the Umbraco.RenderMacro in a form tag instead of a div tag. So there were two form tags. Arrgh :)

    @Umbraco.RenderMacro("renderUmbracoForm", new { FormGuid = form, FormTheme=formDesign, ExcludeScripts = "0" })
    

    Thanks for your time.

    René

Please Sign in or register to post replies

Write your reply to:

Draft