Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
Currently we depend on $.ajax. We should move away from that and instead use either the fetch api or something like superagent.
What we need is a ajax wrapper for the FauxtonAPI. It would be a module in here https://github.com/apache/couchdb-fauxton/tree/master/app/core
Then we could use it like this:
FauxtonAPI.post(url, data);
The one requirement is that is must work for CORS as well.
[EDIT by robertkowalski]: maybe there is a super thin wrapper around the fetch api?