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
Using method:'POST' in XH.fetchJson causes the Content-Type header to be hijacked by the withDefaultsAsync function which replaces it with 'application/x-www-form-urlencoded'. Whereas, the XH.fetchService.postJson() sets the Content-Type to 'application/json'.
Overriding the Content-Type to 'application/x-www-form-urlencoded' can cause unexpected behavior. e.g. when using parseRequestJSON() in a controller expecting the request it will throw as the request input stream is being parsed the wrong way
The text was updated successfully, but these errors were encountered:
Using method:'POST' in XH.fetchJson causes the Content-Type header to be hijacked by the withDefaultsAsync function which replaces it with 'application/x-www-form-urlencoded'. Whereas, the XH.fetchService.postJson() sets the Content-Type to 'application/json'.
Overriding the Content-Type to 'application/x-www-form-urlencoded' can cause unexpected behavior. e.g. when using parseRequestJSON() in a controller expecting the request it will throw as the request input stream is being parsed the wrong way
The text was updated successfully, but these errors were encountered: