I have a packaged Google Chrome app and use the webview tag to load a remote page (which I do not control). This remote page is trying to request privilege notifications and that the permission request does not seem to get into the Chrome app for packaging.
I use the following (overly permissive) code to allow all permission requests from webview (and echo all consoles):
webview.addEventListener('permissionrequest', function(e) { console.log("webview requested " + e.permission); e.request.allow(); }); webview.addEventListener('consolemessage', function(e) { console.log('From webview: ', e.message); });
I cannot find confirmation on the Internet, but I think that display permissions are not yet allowed in web views. If we assume that this is the case, are there any other ways to potentially force permission to a website that CORS will not block?
source share