Discussions

Ask a Question
Back to All

Getting CORS error while using the APIs.

The GITHUB code (https://github.com/de-id/live-streaming-demo) was working fine with my trial credentials, but suddenly it started throwing the following -

Access to fetch at 'https://api.d-id.com/talks/streams' from origin 'http://localhost:8080' 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.

I also tried to execute the same code from https also, but getting the same error.