Open mishoboss opened 2 years ago
Hmm i think i rather implement this as http proxy (?using sqid3?) since i think there will be more use cases where we will need to modify request/response and i would like to do it using some universal solution... it needs some testing...
Proxy is definitively a better and more flexible solution. Fully support you on that.
+1 for proxy support
Note: This on app init should do the trick according to docs, needs to be tested first
QNetworkProxy proxy;
proxy.setType(QNetworkProxy::HttpProxy); // Socks5Proxy, HttpProxy
proxy.setHostName("proxy.example.com");
proxy.setPort(8080);
proxy.setUser('username');
proxy.setPassword('password')
QNetworkProxy::setApplicationProxy(proxy);
Some websites prevent being loaded in iframes by setting the
X-Frame-Options
response header tosameorigin
value. For example if you try to open YouTube or Netflix in iframe, you get empty page and this in the console:There are Chromium extensions that "fix" this by stripping some response headers (Netflix uses some additional headers too). Such extension that works (tested!) is HiFrame. This is its code:
Is there a chance this option to be added by creating yet another chromium-kiosk-extension?