Discussions

Ask a Question
Back to All

CORS errors - Im getting CORS errors

I'm getting cors erros when I attempt to make a new post request to an active stream with a session id. How do I resolve this

localhost/:1 Access to fetch at 'https://api.d-id.com/talks/streams/strm_3L-3vARWdKkiBGhucGsDu' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
streaming-client-api.js:393

   POST https://api.d-id.com/talks/streams/strm_3L-3vARWdKkiBGhucGsDu net::ERR_FAILED

createTalk @ streaming-client-api.js:393
promptQuestionGetResponse @ streaming-client-api.js:362
await in promptQuestionGetResponse (async)
(anonymous) @ streaming-client-api.js:324
streaming-client-api.js:393

   Uncaught (in promise) TypeError: Failed to fetch
at createTalk (streaming-client-api.js:393:26)
at promptQuestionGetResponse (streaming-client-api.js:362:3)
at async HTMLButtonElement.<anonymous> (streaming-client-api.js:324:3)