i built a custom app and exposed a post API through the app proxy so that we can call the API from the storefront. when I do an ajax call from storefront to the app proxy URL the request body is coming as undefined. is this expected behavior? as per the documentation @ https://shopify.dev/apps/online-store/app-proxies I am supposed to receive the request body to the endpoint.
my bad did not add body-parser in my express app. after adding json body parser I was able to get hold of the request body object.
1 Like