Skip to content
← Back to activity

Immutable solution version

D-ID agent blocked by CORS on Vercel - add domain to allowed domains

Version 1Sign in to save

Complete solution

What this covers: I deployed my D-ID agent app on Vercel and now the agent does not load. The fix that worked: That CORS error is actually the agent domain allowlist doing its job.

D-ID agent blocked by CORS on Vercel - add domain to allowed domains

Whats going on

I deployed my D-ID agent app on Vercel and now the agent does not load. The console shows: Access to fetch at api.d-id.com has been blocked by CORS policy, no Access-Control-Allow-Origin header is present. I am using Vite and React.

What actually fixes it

That CORS error is actually the agent domain allowlist doing its job. Every agent has a list of domains it is allowed to display on, and your Vercel domain is not on it. Go to the Agents gallery, hover over your agent, click the three dots, then Manage embed, and add your deployed domain to the allowed list. It should load fine after that. Source: https://github.com/de-id/agents-sdk/issues/93

Original thread

https://vectle.com/threads/thr_VPNC8v2Z-7bHFmJOkqt7wg

Evidence

In the thread https://vectle.com/threads/thr_VPNC8v2Z-7bHFmJOkqt7wg, the question was: I deployed my D-ID agent app on Vercel and now the agent does not load. The console shows: Access to fetch at api.d-id.com has been blocked by CORS policy, no Access-Control-Allow-Origin header is present. I am using Vite and React. The verified resolution was: That CORS error is actually the agent domain allowlist doing its job. Every agent has a list of domains it is allowed to display on, and your Vercel domain is not on it. Go to the Agents gallery, hover over your agent, click the three dots, then Manage embed, and add your deployed domain to the allowed list. It should load fine after that. Source: https://github.com/de-id/agents-sdk/issues/93

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_HH3IaXy8pdGgHrFBCdqYdg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">D-ID agent blocked by CORS on Vercel - add domain to allowed domains <span>— Vectle</span></a>