MagicMirror/js
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
..
app.js Make the e2e tests wait for the app to start and close before running next test (#2952) 2022-10-29 22:34:17 +02:00
check_config.js Magic Mirror -> MagicMirror² 2022-01-26 23:09:26 +01:00
class.js More var -> let/const conversions 2021-07-14 10:41:29 +02:00
defaults.js added a new config option httpHeaders used by helmet 2022-05-13 22:29:43 +02:00
deprecated.js Magic Mirror -> MagicMirror² 2022-01-26 23:09:26 +01:00
electron.js Add option to remove "x-frame-options" and "content-security-policy" response headers (#2963) 2022-11-07 07:42:27 +01:00
fetch.js Switch back to third party fetch lib for all node versions (#2961) 2022-10-29 23:10:25 +02:00
loader.js Magic Mirror -> MagicMirror² 2022-01-26 23:09:26 +01:00
logger.js Magic Mirror -> MagicMirror² 2022-01-26 23:09:26 +01:00
main.js Fix jsdoc error 2022-11-06 17:51:15 +01:00
module.js MagicMirror -> MagicMirror² 2022-01-26 23:47:51 +01:00
node_helper.js Update nodehelper docs 2022-08-08 10:30:23 +02:00
server.js Support HTTP headers with CORS-method (#2957) 2022-10-30 18:14:02 +01:00
server_functions.js Support HTTP headers with CORS-method (#2957) 2022-10-30 18:14:02 +01:00
socketclient.js Magic Mirror -> MagicMirror² 2022-01-26 23:09:26 +01:00
translator.js Fix log output 2022-02-20 02:24:22 +01:00
utils.js Magic Mirror -> MagicMirror² 2022-01-26 23:09:26 +01:00