CSP settings are managed by your website. Your website developer or hosting provider will need to update them; Watermelon cannot change your website’s CSP from within the chat widget.
Step 1: Find the blocked resource
- Open the page where the Watermelon chat widget is not working.
- Open your browser’s developer tools (usually F12 or right-click and select Inspect) and go to the Console tab.
- Look for a Content Security Policy error, often beginning with
Refused to loadorRefused to connect. - Note the blocked URL and the CSP directive mentioned in the error, such as
script-src,frame-src, orstyle-src.
Step 2: Allow the necessary Watermelon resources
Ask your website developer to add the relevant resources to your existing CSP rules, rather than replacing your current policy. Only allow resources that are actually being blocked.Step 3: Configure a nonce if your website uses one
If your CSP uses nonces to allow trusted scripts and inline styles, add the same nonce generated for that page response to your Watermelon embed script:<style> elements it creates on your page. If you use style-src-elem, make sure that directive also permits the nonce.
Keep in mind:
- A nonce does not automatically permit iframes, external stylesheets, fonts, images, or network requests. Those still need the appropriate CSP permissions.
- If your CSP uses
strict-dynamic, your widget script needs a valid nonce even ifhttps://chatwidget-prod.web.appis already listed inscript-src. - Never use
YOUR_PAGE_NONCEliterally or reuse the same nonce across page responses.
Step 4: Test your changes
Once your developer has updated the CSP:- Clear any relevant website or CDN cache and reload the page.
- Confirm that the chat widget appears and opens correctly.
- Check the browser console for any remaining CSP errors.
- The URL of the affected page.
- A screenshot of the console error showing the blocked URL and CSP directive.
- A short description of what is missing or not working (for example, the entire widget, the chat button, a font, or an image).

