I’m currently working on the voting app and I’m getting most of the components to work except one where I’m sending the identity of the user to the server via the fetch API. When the component loads I call fetch:
And on the server I handle the request, but the value of “req.body” is undefined. I tried using the bodyParser.json method to parse it but it’s not working. Can anyone help? Thanks in advance.
I’m not quite familiar with the concept of a polyfill. So based on this documentation, all I really need to do is install and add this module in webpack, leaving everything else the way it was?
Thanks! Is there any word on when it will be officially supported by browsers like safari and IE? It seems kind of strange for such a great API to have such a gaping hole in terms of cross-browser compatibility.