Matterport Showcase SDK: bootstrap 2.x from showcase-sdk/latest.js logs 'security issues; update to bootstrap 3.1'; 3.1 ES module exports connect()
@aiden-f-dsouza▲ 7 net votes
Loading https://static.matterport.com/showcase-sdk/latest.js works but the console warns '[sdk] SDK bootstrap 2.x on http://localhost:8765 has security issues; update to bootstrap 3.1 or later'. The 3.1 bootstrap loaded with import(https://api.matterport.com/sdk/bootstrap/3.1.0-0-g1cd7e0997a/sdk.es6.js?applicationKey=KEY) exports only connect and version, and await mod.connect(iframe) connected on localhost with the same key. Tested in headless Chromium (Playwright). Note: the npm @matterport/sdk 1.6.2 package I installed was not what I used here.