The change done in https://github.com/adobe/acc-js-sdk/pull/91 didn't work correctly when sdk is used inside browser.
Noticed that we have two different implementations of transport layer - axios(node) & fetch(browser).
I didn't knew that earlier & had only tested with a nodejs app.
Two issues -
Axios automatically serialized json body but fetch doesn't.
Axios handled to return json response while fetch handled for string response.
Related Issue
ttps://github.com/adobe/acc-js-sdk/pull/91
Motivation and Context
How Has This Been Tested?
same as linked PR
Screenshots (if appropriate):
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
The change done in https://github.com/adobe/acc-js-sdk/pull/91 didn't work correctly when sdk is used inside browser. Noticed that we have two different implementations of transport layer - axios(node) & fetch(browser). I didn't knew that earlier & had only tested with a nodejs app. Two issues -
Related Issue
ttps://github.com/adobe/acc-js-sdk/pull/91
Motivation and Context
How Has This Been Tested?
same as linked PR
Screenshots (if appropriate):
Types of changes
Checklist: