You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am following along with "axios": "^1.1.3". I just spent a painful 2 hours fighting a bug where the Axios service would always POST with an empty body. Thanks to Postman, I realized the header was not being read. It turns out it needs to be properly capitalized:
"Content-Type": "application/json"
And this fixed my issue.
The text was updated successfully, but these errors were encountered:
react-crud-web-api/src/http-common.js
Line 6 in 8498b60
Hi, thank you for your website and code!
I am following along with "axios": "^1.1.3". I just spent a painful 2 hours fighting a bug where the Axios service would always POST with an empty body. Thanks to Postman, I realized the header was not being read. It turns out it needs to be properly capitalized:
And this fixed my issue.
The text was updated successfully, but these errors were encountered: