• Resolved nitin421503

    (@nitin421503)


    I’m using WordPress as a headless CMS and using Contact Form 7 for my form needs.

    I recently updated it to version 5.8.7 from 5.8.5, which was a minor update. (I assumed)
    But with the update, all my form submissions stopped working. Therefore, I downgraded the plugin.

    I looked to change the log and found there were some restrictions added to REST API: Returns 400 Bad Request if no valid unit tag is included in the form submission.

    I am not sure what a valid unit tag is or how I can fix it for my website.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Where can we see the website in question?

    Thread Starter nitin421503

    (@nitin421503)

    I just posted one more parameter named ‘_wpcf7_unit_tag’ with value true, and it worked.

    Thread Starter nitin421503

    (@nitin421503)

    As you said here, you are willing to harden validation if necessary.

    Make sure the change log makes it clear and include a warning in the update so that people like me will not have to suffer ????.

    Thanks for your support.?

    My concern is that I submit data via the API therefore without direct interaction with the form but by taking its ID. One solution is that we can add upstream the “_wpcf7_unit_tag” parameter initialized with a non-empty string for it to work. If there is a verification, I don’t see how to do it.
    Please ??, No stricter validation.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Returns 400 Bad Request for POST Request Method.’ is closed to new replies.