Use cookies in capacitor's webview?

How can my app keep using cookies for authenticating with the API just the same as the web-based version of the frontend does?

I don’t want to have to change the whole existing backend and frontend if it can be avoided.

IMO, capacitor should just like a browser be automatically updating and setting cookies even without me making a bunch of changes to the frontend and backend to support SameSite=None and Secure=True etc., and moving my dev environment to https…

People have gotten cookies working but it is not recommended - Capacitor iOS / Cookie Authentication / capacitor/http - #10 by dallas

Look at Cookies Capacitor Plugin API | Capacitor Documentation.