Copied to clipboard

Flag this post as spam?

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


  • René Pjengaard 118 posts 702 karma points c-trib
    May 08, 2023 @ 12:32
    René Pjengaard
    1

    Problem with Umbraco Forms POST Api

    Hi Our,

    I´m trying to use the new API version of Umbraco Forms. We have a headless (not umbraco headless) setup, so we can´t use the Antiforegy approach.

    According to the documentation, it should be possible to disable the antiforegy and use a hardcodet api-key for validation: https://docs.umbraco.com/umbraco-forms/v/10.latest-lts-2/developer/ajaxforms#api-key

    I have this setup in my appSettings.json file:

    enter image description here

    But when i POST an entry from Insomnia i get an error like this:

    enter image description here

    Anybody has any idea on what could be wrong?

    I use Umbraco.Forms: 10.4.2 and Umbraco 10.3.2

    I have added the "Api-Key" key to the POST

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    May 08, 2023 @ 19:39
    Chriztian Steinmeier
    101

    Hi René,

    I think the entire "Forms" section of the appsettings needs to be a sibling of "CMS" - looks like you've put it inside as a child instead?

    I did this once and wasted an hour of debugging email-notifications :(

    /Chriztian

  • René Pjengaard 118 posts 702 karma points c-trib
    May 09, 2023 @ 06:53
    René Pjengaard
    1

    You are so right Chriztian! Thanks man, I owe you one 🙏

Please Sign in or register to post replies

Write your reply to:

Draft