A company has deployed the watsonx Assistant web chat widget on their internal corporate portal, which enforces strict Content Security Policy (CSP) headers. After deployment, the widget silently fails to load in employee browsers. What configuration change will resolve this issue?
Select an answer to reveal the explanation.
Short Explanation and Infographic
Todd Lammle: 'Imagine you're building a chatbot and this exact situation comes up — add the watsonx assistant web chat cdn and api domains to the portal's csp directive allowlist (script-src, connect-src, and frame-src) is your go-to move. The watsonx Assistant web chat widget loads JavaScript from IBM-hosted CDN domains and establishes WebSocket connections to the assistant API. This is a classic Domain 5: Administration concept you'll want locked in before exam day.'
Full explanation below image
Full Explanation
The watsonx Assistant web chat widget loads JavaScript from IBM-hosted CDN domains and establishes WebSocket connections to the assistant API. When a site's CSP policy does not allowlist these domains, the browser blocks the resources silently. The fix is to add the required IBM domains (e.g., web-chat.global.assistant.watson.appdomain.cloud and *.watsonplatform.net) to the appropriate CSP directives on the hosting portal, not to weaken the assistant's own security posture. The correct answer, "Add the watsonx Assistant web chat CDN and API domains to the portal's CSP directive allowlist (script-src, connect-src, and frame-src)", directly satisfies the scenario because it aligns with watsonx Assistant's design principles and the specific capability being tested. The incorrect options ("Disable HTTPS on the watsonx Assistant service endpoint so the embedded script does not trigger mixed-content CSP violations", "Switch from the web chat integration to direct REST API calls from a custom-built chat UI", "Set the watsonx Assistant instance to public access mode to bypass origin restrictions") may appear relevant but each misses a key requirement or introduces a step that is either unnecessary or belongs to a different workflow. Mastering the distinction between these approaches is essential for effective watsonx Assistant implementations and is a core focus of the Domain 5: Administration section of the certification exam.