Does the Tripo API support cross-origin requests (CORS)?

Not supported. To protect the security of API Keys and user data, the Tripo API does not support cross-origin (CORS) requests initiated directly from other websites or browser front-ends. If you call the Tripo API directly in browser-side JavaScript, React, Vue, or other front-end code, requests may fail due to CORS restrictions.

How to call the Tripo API correctly?

It is recommended to use a Server-side Proxy approach:

text
User Browser
    ↓
Your Backend Service
    ↓
Tripo API

The front-end sends requests to your own server, which then calls the Tripo API with the API Key and returns the result to the front-end. This approach not only avoids CORS issues, but also prevents the API Key from being exposed in browser code. The official Tripo documentation also recommends storing the API Key in server-side environment variables, rather than placing it directly in front-end applications or committing it to a code repository.

👉 View Tripo API Quick Start

Share the Article
cta-bg

Advancing 3D generation to new heights

Moving at the speed of creativity, achieving the depths of imagination.

Try It Now