How to upload documents to CouchDB from Angular using HttpClient
问题 I set up a new CouchDB on my local computer. When I try to upload new documents to an existing database using HTTP POST method, CouchDB refuses the request and claims it was HTTP OPTIONS method. Typescript classes My service class looks as follows. import { Injectable } from '@angular/core'; import { HttpClient } from '@angular/common/http'; @Injectable() export class DbService { private static readonly BASE_URL = 'http://localhost:5984/'; private static readonly ENTRIES_URL = DbService.BASE