Thomas Hirschberger b9b7d2c95d
Add option to remove "x-frame-options" and "content-security-policy" response headers (#2963)
Many users like me do have the problem that they want to embed other
sites to their mirror by "iframe".
As some developers set the "x-frame-options" and
"content-security-policy" for security reasons these sites can not be
embedded.
Electron provides the "webview" element additionally to "iframe" which
allows to embed these sites although. The main difference is that a new
process is started which handles the "webview" element.
BUT: As the "webview" process needs to be started and is isolated
"webview" is slower and the elements can not be accessed from the
embedding website.

As an alternative i implemented a small callback function in electron.js
which removes the response headers that forbid the embedding.

The removing can be controlled with the new config options:
* ignoreXOriginHeader
* ignoreContentSecurityPolicy
2022-11-07 07:42:27 +01:00
..
2022-01-26 23:09:26 +01:00
2021-07-14 10:41:29 +02:00
2022-01-26 23:09:26 +01:00
2022-01-26 23:09:26 +01:00
2022-01-26 23:09:26 +01:00
2022-11-06 17:51:15 +01:00
2022-01-26 23:47:51 +01:00
2022-08-08 10:30:23 +02:00
2022-01-26 23:09:26 +01:00
2022-02-20 02:24:22 +01:00
2022-01-26 23:09:26 +01:00