Use Adobe Launch to deploy the JavaScript to get rid of the
authentication issue. Despite using launch, Content-Type, sandbox-name,
and Authorization are the only headers that are required. Make sure you
are on a correct sandbox and in the left navigation rail, click on
Sources and open Accounts tab and click on HTTP API to select the row.
On the right side, scroll down to the Streaming endpoint and make sure
to copy it from there.