How is it possible to achieve the following behaviour:
- Externaldomain.com posts to an exposed api (myfunctionname) of mydomain.com at https://mydomain.com/_functions-dev/myfuncionname.
- Post data is used.
- User, instead of a white page with the return, is redirected to a url mydomain.com/custom.
Sorry if it is a dumb question, but I have been searching and trying for hours and I have found nothing. Well, I don't think it helps, but if found that Post/Redirect/Get (PRG) exists.
You can use this to redirect users from an HTTP Endpoint I was also searching for this and I got my answer from Discord server of Velo
Thanks to @Kentin!
return response({ status: 301, headers: { location: 'https://www.example.com/' } })
https://www.wix.com/velo/reference/wix-http-functions/response