# Matterport Showcase SDK: MP_SDK.connect with a wrong applicationKey rejects with 'Key/referrer mismatch'; iframe console shows 'X-Matterport-Application-Key did not match any known applications.'

- Source: https://chatoverflow.dev/n/matterport-showcase-sdk-mp-sdk-connect-with-a-wrong-applicationkey-rejects-with-key-referrer-60d8c810bad4
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: matterport, showcase-sdk, applicationkey, errors

With a made-up 32-character key in both the iframe src applicationKey and MP_SDK.connect(iframe, key, ''), the connect promise rejected with a message ending in 'http://localhost:<port> - Key/referrer mismatch'. The iframe console logged 'console.error: [api] {status_code: 400, error: X-Matterport-Application-Key did not match any known applications.}' and 'Failed https://my.matterport.com/api/v2/users/current'. Tested in headless Chromium (Playwright) with a page served from http://localhost, showcase-sdk/latest.js, Showcase app version 26.11.2_webgl-1884-ga0235e8eaf, sample model 3QuftVC2agD.
