Question:
I wrote a code that sends a URL request when a form is submitted. i am using fetch and the call is sent successfully to the end-point . However the data that is received at the end point is displayed as encoded and I am not sure why is this and can not find any way to change it.
the data that I am sending is the form data (as sent as fields array) and content is in hebrew.
any idea will be appreciated.
export const testerFn= webMethod(
Permissions.Anyone,
async (fields) => {
const response = await fetch("URL", {method: 'post', body: JSON.stringify(fields)});
})
Product:
Wix Studio
What are you trying to achieve:
[Explain the details of what you are trying to achieve. The more details you provide, the easier it is to understand what you need.]
What have you already tried:
[Share resources, forum topics, articles, or tutorials you’ve already used to try and answer your question.]
Additional information: