CSP support for V2 applications
This section provides details on the Content Security Policy (CSP) rules you need to access Bazaarvoice domains. You can configure CSP by adding <meta>tags to your HTML page.
CSP level 1
|
Directive name
|
Directive description
|
Sources |
|---|---|---|
|
|
The HTTP Content-Security-Policy (CSP) |
'self' https://*.bazaarvoice.com |
script-src
|
The HTTP Content-Security-Policy (CSP) |
'self' https://*.bazaarvoice.com
|
style-src
|
The HTTP Content-Security-Policy (CSP) style-srcdirective specifies valid sources for stylesheets.
|
'self' https://*.bazaarvoice.com
|
img-src
|
The HTTP Content-Security-Policy img-src directive specifies valid sources of images and favicons.
|
https://*.bazaarvoice.com blob: data:
|
connect-src
|
The HTTP Content-Security-Policy (CSP) connect-src directive controls what URLs can be loaded using script interfaces.
|
self' https://*. bazaarvoice.com
https://mpsnare.iesnare.com
|
media-src
|
The HTTP Content-Security-Policy (CSP) media-src directive specifies valid sources for loading media using the <audio> and <video> elements.
|
'self' https://*.bazaarvoice.com |
object-src
|
The HTTP Content-Security-Policy |
'self' https://*.bazaarvoice.com
|
frame-src
|
The HTTP Content-Security-Policy (CSP) frame-src directive specifies valid sources for loading nested browsing contexts using elements such as <frame> and <iframe>.
|
self' https://*.bazaarvoice.com |
font-src
|
The HTTP Content-Security-Policy (CSP) font-src directive specifies valid sources for fonts loaded using @font-face.
|
'self' https://*.bazaarvoice.com
|
CSP level 2
| Directive name | Directive description |
Sources |
|---|---|---|
upgrade-insecure-requests |
The HTTP Content-Security-Policy (CSP) upgrade-insecure-requests directive instructs user agents to treat all of a site's insecure URLs (those served over HTTP) as though they have been replaced with secure URLs (those served over HTTPS). This directive is intended for web sites with large numbers of insecure legacy URLs that need to be rewritten. |
CSP level 3
| Directive name | Directive description |
Sources |
|---|---|---|
|
|
The HTTP Content-Security-Policy (CSP) |
'self' https://*.bazaarvoice.com https://mpsnare.iesnare.com https://edge.curalate.com |
style-src-elem |
The HTTP Content-Security-Policy (CSP) style-src-elem directive specifies valid sources for stylesheet <style> elements and <link> elements with rel="stylesheet". |
'self' https://*.bazaarvoice.com |
|
|
The HTTP Content-Security-Policy: |
'self' https://*.bazaarvoice.com |
The following example contains the code to set up CSP by adding to the page’s HTML.
HTML |
<meta http-equiv="Content-Security-Policy" content="default-src 'self' https://*.bazaarvoice.com; script-src 'self' 'sha256-b3IrgBVvuKx/Q3tmAi79fnf6AFClibrz/0S5x1ghdGU=' https://*.bazaarvoice.com https://mpsnare.iesnare.com wss://mpsnare.iesnare.com https://edge.curalate.com/ https://uk.cdn-net.com/ https://six.cdn-net.com/; script-src-elem 'self' 'sha256-b3IrgBVvuKx/Q3tmAi79fnf6AFClibrz/0S5x1ghdGU=' https://*.bazaarvoice.com https://mpsnare.iesnare.com wss://mpsnare.iesnare.com https://edge.curalate.com/ https://uk.cdn-net.com/ https://six.cdn-net.com/; style-src 'self' 'unsafe-inline' https://*.bazaarvoice.com; style-src-elem 'self' 'unsafe-inline' https://*.bazaarvoice.com; manifest-src 'self' https://*.bazaarvoice.com; img-src https://*.bazaarvoice.com blob: data:; connect-src 'self' https://*.bazaarvoice.com https://mpsnare.iesnare.com wss://mpsnare.iesnare.com; media-src 'self' https://*.bazaarvoice.com https://mpsnare.iesnare.com wss://mpsnare.iesnare.com blob: data: 'self' https://*.bazaarvoice.com https://mpsnare.iesnare.com wss://mpsnare.iesnare.com; object-src 'self' https://*.bazaarvoice.com; frame-src 'self' https://*.bazaarvoice.com https://www.youtube.com/ https://uk.cdn-net.com/; font-src 'self'https://*.bazaarvoice.com; upgrade-insecure-requests"> |