Is it possible to manipulate API headers via plugin? - for Ionic Capacitor

I do not know Capacitor and I do not understand why you would be getting a CORS error.

A plugin can access an internal web server.

The plugin uses the Android environment.

You can also run another web server for the gui.

This article is 5 years old, but may give you some ideas.