We have our own app (react-native) which has a webview loading a NextJS website
Our Feedback form page is simple and the form submission submits correctly when viewing the NextJS site/page outside of the app within Safari or Chrome:
<Script
type='text/javascript'
src='//js.hsforms.net/forms/embed/v2.js'
onReady={() => {
// -expect-error
hbspt.forms.create({
region: 'na1',
portalId: '3871135',
formId: '4270dfaa-99e6-4e2a-9374-b389634cee51',
target: '#feedback-form-container',
});
}}
/>
<div id='feedback-form-container' />
The form creates properly on app and web. And the form submits properly on web
However, while in the app, when I submit the form I am redirected out of the app to this page: https://forms.hsforms.com/submissions/v3/public/submit/formsnext/multipart/3871135/4270dfaa-99e6-4e2a-9374-b389634cee51
which shows:
HTTP ERROR 405
Reason:
Method Not Allowed
Should I be using a webhook/api instead of generating this form with my usual web script?
Any thoughts on why the 405 is occuring only inside of the app?