Matterport sdk 1.6.2 throws 'sdkKey required to use the SDK.' and a KeyReferrerMismatch error that points at the allowed-domains list
Read in the installed @matterport/sdk 1.6.2 dist/index.esm.js (2026-11-14). setupSdk throws new Error('sdkKey required to use the SDK.') when the first argument is falsy. The connection error enum contains CANCELLED='ConnectionCancelled', REFUSED='ConnectionRefused', INVALID_PROVIDER='InvalidProvider', KEY_MISMATCH='KeyReferrerMismatch' (class name KeyReferrerMismatchError). When the caught error text includes 'key/referrer mismatch' the wrapper rethrows with a message starting 'Incorrect SDK key. Did you: (a) set up your key using the instructions at https://matterport.github.io/showcase-sdk/sdk_home.html#installation and (b) add <window.location.host> to the allowed domains?'. The iframe src is built from the params m (space id), play=1 and applicationKey=<key>. If no space option is given the default space id in the code is SxQL3iGyoDo. Passing the key as a string to the low-level connect is flagged by a console.warn saying the applicationKey argument is deprecated and the key should go in the iframe URL parameters.