Has anyone successfully connected PouchDB directly to a Capella endpoint? I’m trying to set this up, but I keep running into CORS issues.
I followed the official guidelines, and everything works fine with a self-hosted Sync Gateway. However, when I attempt to sync PouchDB with Capella, the connection is blocked due to CORS restrictions. I’ve already tried configuring the correct origins and login settings, but the issue persists.
Is it even possible to connect PouchDB directly to Capella? If so, how should CORS and the connection be properly set up? Any guidance would be greatly appreciated!
const localDB = new PouchDB(‘pouch_local_2024’);
const remoteDB = new PouchDB(‘my_capella connection string’
, {
auth: { username: ‘username’, password: ‘my_password’ }
}