Skip to content
This repository was archived by the owner on Apr 12, 2022. It is now read-only.

Is it possible to use fetch to access CBL REST endpoint directly? #134

@greenais

Description

@greenais

Coucbase.init returns url like this:
http://f08e71ac-1065-483c-b18a-4f13e14b1933:19c3571c-4492-4417-a335-844d4e87bad8@localhost:5987

Could those long user:pass@ provided in the url be used to query CBL REST listener?
I tried fetch with

headers: {
     'Authorization': 'Basic '+ base64.encode('user:pass')
  }

but it gets 401 response.
Is there anything specific to consider within CBL REST endpoint authorization?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions