Spring videre til hovedindholdet

Sådan bruger du Smartsupp med Content Security Policy (CSP)?

Lær at bruge Smartsupp med Content Security Policy (CSP) for sikkert indhold.

Skrevet af Michal Jindra

Hvis dit websted bruger en Content Security Policy, skal du tillade Smartsupp's domæner (*.smartsupp.com, *.smartsuppchat.com og *.smartsuppcdn.com) i den, ellers bliver chatten ikke indlæst korrekt. De præcise regler for CSP v3 og CSP v2 finder du herunder.

Vi har opdelt artiklen i nogle afsnit:


CSP v3 - streng, kompatibel med Google

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


Changelog

Changelog 2020-04-17: Tilføjet følgende

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

2020-09-22: Fjernet følgende

    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


Hvad sker der nu?

💡 Brug for mere hjælp? Kontakt vores supportteam via chat eller e-mail — vi er klar til at hjælpe dig.

Besvarede dette dit spørgsmål?