For device request() and fetch() calls that include a JSON body in the request, it would be better to explicitly add a Content-Type of 'application/json' to the headers so that client libraries can automatically validate the request for properly formed JSON. Otherwise browsers such as Chrome or Edge send the request as text/plain.
For device request() and fetch() calls that include a JSON body in the request, it would be better to explicitly add a Content-Type of 'application/json' to the headers so that client libraries can automatically validate the request for properly formed JSON. Otherwise browsers such as Chrome or Edge send the request as text/plain.