What is the standard approach to configure the genesyscloud_webchat_widget resource to bypass strict ALB security policies without breaking the websocket connection?
we are deploying the widget via terraform (provider 1.12.0) inside an aws vpc. the initial http request succeeds but the ws upgrade fails with 403 forbidden. the alb has a waf rule that blocks non-standard user agents, but the softphone client sends a specific header that gets stripped.
error log from browser console:
WebSocket connection to ‘wss://api.mypurecloud.com/api/v2/webchat/sessions/ws’ failed: Error during WebSocket handshake: Unexpected response code: 403
we tried adding custom headers in the widget config but the terraform schema does not allow arbitrary headers. the genesyscloud_webchat_widget resource only supports basic settings like org_name and widget_id.
is there a workaround to inject the required header via the custom_css or javascript injection fields? or should we be using a different endpoint for the websocket connection in this setup? the environment is eu-west-1.
thanks.