401 error with cordova android

Here’s the solution for fetch:

fetch(dbUrl, {credentials: ‘include’})