{"id":14280308,"date":"2021-04-06T01:41:34","date_gmt":"2021-04-06T01:41:34","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/feedback_localeuser\/"},"modified":"2021-04-06T01:41:34","modified_gmt":"2021-04-06T01:41:34","slug":"feedback_localeuser","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/feedback_localeuser\/","title":{"rendered":"Feedback?_locale=user"},"content":{"rendered":"<p>Hi, our website sits behind a firewall on the server level. We have been unable to update contact form 7 from 4.3.1 due to the fact that updating it, I believe, changes the submission to using the rest api and so our firewall blocks requests in &#8220;multipart\/form-data&#8221;. I&#8217;ve added this line to our functions.php file to force the form to use x-www-form-url-encoded<\/p>\n<pre><code>\nadd_filter(&#039;wpcf7_form_enctype&#039;, &#039;wpcf7_enctype_overwrite&#039;);\nfunction wpcf7_enctype_overwrite($enctype)\n{\n    $enctype = &#039;application\/x-www-form-urlencoded&#039;;\n    return $enctype;\n}\n<\/code><\/pre>\n<p>However, upon submission, the feedback?_locale=user still gets blocked as the request header content-type still comes back as &#8216;multipart\/form-data&#8217;. Just to add, the form I&#8217;ve created doesn&#8217;t have any file upload fields.<\/p>\n<p>Is there a way around this without disabling ajax?<\/p>\n","protected":false},"template":"","class_list":["post-14280308","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14280308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14280308\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14280308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}