Naar de hoofdinhoud

Hoe gebruik je Smartsupp met Content Security Policy (CSP)?

Leer hoe je Smartsupp gebruikt met Content Security Policy (CSP) voor veilige content.

Geschreven door Michal Jindra

Als je website een Content Security Policy gebruikt, sta dan de Smartsupp-domeinen (*.smartsupp.com, *.smartsuppchat.com en *.smartsuppcdn.com) toe, anders wordt de chat niet goed geladen. De exacte regels voor CSP v3 en CSP v2 staan hieronder.

We hebben het artikel ingedeeld in enkele onderdelen:


CSP v3 - streng, compatibel met 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: Toegevoegd

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

2020-09-22: Verwijderd

    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


Wat is het volgende?

💡 Meer hulp nodig? Neem contact op met ons Ondersteuningstool via chat of e-mail — we helpen je graag.

Was dit een antwoord op uw vraag?