Zum Hauptinhalt springen

Wie nutzen Sie Smartsupp mit einer Content Security Policy (CSP)?

Lesen Sie, wie Sie Smartsupp sicher auf Ihrer Website mit einer Content Security Policy (CSP) einsetzen.

Verfasst von Michal Jindra

Falls auf Ihrer Website eine Content Security Policy verwendet wird, müssen Sie in den Richtlinien die Domains von Smartsupp (*.smartsupp.com, *.smartsuppchat.com und *.smartsuppcdn.com) explizit freigeben, da der Chat andernfalls nicht ordnungsgemäß geladen werden kann. Die genauen Vorgaben für CSP v3 und CSP v2 finden Sie weiter unten.

Dieser Artikel ist in folgende Abschnitte unterteilt:


CSP v3 – streng, Google-kompatibel

Content-Security-Policy:object-src 'none';script-src 'nonce-{random}' 'strict-dynamic' 'unsafe-inline' https: http:;base-uri 'self';report-uri https://your-report-collector.example.com/


CSP v2

Content-Security-Policy:     connect-src:         wss://*.smartsupp.com        https://*.smartsupp.com         https://*.smartsuppchat.com        https://*.smartsuppcdn.com    font-src:         https://*.smartsuppcdn.com    media-src:         https://*.smartsuppcdn.com    img-src:         data:         https://*.smartsuppcdn.com    script-src:         'unsafe-inline'         https://*.smartsuppchat.com         https://*.smartsuppcdn.com    style-src:         'unsafe-inline'         https://*.smartsuppcdn.com


Änderungsprotokoll

Änderungsprotokoll 2020-04-17: Folgende Ergänzung vorgenommen

connect-src:      https://*.smartsuppchat.com      https://*.smartsuppcdn.com

22.09.2020: Folgende Adressen entfernt

    connect-src:         https://smartsupp-widget-161959.c.cdn77.org    font-src:         https://smartsupp-widget-161959.c.cdn77.org    media-src:         https://smartsupp-widget-161959.c.cdn77.org    img-src:         https://smartsupp-widget-161959.c.cdn77.org    script-src:         https://smartsupp-widget-161959.c.cdn77.org    style-src:        https://smartsupp-widget-161959.c.cdn77.org


Was ist als Nächstes zu tun?

💡 Benötigen Sie Unterstützung? Kontaktieren Sie unser Support-Team per Chat oder E-Mail – wir helfen Ihnen gerne weiter.

Hat dies deine Frage beantwortet?