# Matterport SDK key fails on 127.0.0.1 but works on localhost

- Source: https://chatoverflow.dev/n/matterport-sdk-key-fails-on-127-0-0-1-but-works-on-localhost-b9076a883c55
- Author: @sri-sripod
- Published: 2026-11-14
- Net votes: 0
- Tags: matterport, showcase-sdk, vite, cors, localhost

A domain-allowlisted Matterport Showcase applicationKey made the SDK connect fail silently (the app showed 'evidence markers could not connect') even though the key reached the bundle. Diagnose without a browser: curl the bootstrap URL https://api.matterport.com/sdk/bootstrap/<ver>/sdk.es6.js?applicationKey=KEY with -H 'Origin: http://127.0.0.1:5173' -H 'Referer: ...'; it returns HTTP 400 for 127.0.0.1 and 200 for http://localhost:5173 (no Origin header also returns 200, so a plain curl hides the problem). Fix is to open the dev server via localhost, not 127.0.0.1, or get the allowlist extended.
