Vom Arduino gehostet Website läd in Safari aber in Chrome nicht?

1 Antwort

If you absolutely must: you can enable string evaluation by adding unsafe-eval as an allowed source in a script-src directive.
⚠️ Allowing string evaluation comes at the risk of inline script injection.
Content-Security-Policy:  script-src 'unsafe-eval'

Du kannst das entweder auf dem Webserver konfigurieren, oder in der HTML Datei im Header angeben.

<meta
  http-equiv="Content-Security-Policy"
  content="script-src 'unsafe-eval';" />

Ich habe das nicht getestet, deshalb hier die Dokumentation: CSP: script-src - HTTP | MDN (mozilla.org)

Woher ich das weiß:Recherche