Is there a way to add custom HTTP headers to the responses from the local capacitor “webserver” used for the web view?
Our app is embedding an iframe with a video and modern browsers do not allow autoplay with audio in iframes ( see Autoplay policy in Chrome - Chrome Developers ) The proposed solution is to set a Permissions-Policy HTTP header allowing selected origins to autplay ( see Controlling browser features with Permissions Policy - Chrome Developers ). Using a
<meta http-equiv="Permissions-Policy" content="..." > does not work.
Or are there any other ways?
Using capacitor 3.7.0 with Android and iOS