Understand the reasons to use client-side or server-side API keys
component.tsx
file is simplified to only show the relevant
logic. The client-side component sends an API request to the application’s backend, which then proxies the request
to Crossmint. This is because the example is using a server-side API key, which requires making requests from a
server environment.http://localhost:3000
(or similar local dev URLs) as authorized origins, or the
request will be denied.clientSecret
property that you must persist in state and then pass as an additional header in subsequent API requests to the update-order or get-order routes.
x-app-identifier
header in your requests. This header should contain the bundle identifier (iOS) or package name (Android) that you whitelisted when creating your API key.
x-app-identifier
must match one of the mobile app identifiers you whitelisted when creating your client-side
API key. For more information on setting up mobile app identifiers, see the Client-side API
Keys documentation.