Service consumption problem from react-native with form-data using fetch and axios

-1

I am programming in react-native an app that consumes services, when the service is consumed with POSTMAN if it works when sending the header and body, however when I try to consume with fetch and react-native axios it returns me status 406 no no other answer comes back, I do not know if I'm omitting something or this is something in my function thanks

    
asked by Andres Buitrón T 18.08.2018 в 04:45
source

1 answer

0

Try adding 'Accept': 'application/json' to the headers of the fetch.

    
answered by 24.08.2018 в 00:28