Discussions
Keep getting a 201 Error
8 months ago by acquisitions
I am attempting to call the Animations API using this code
And I'm getting this 201 Error
Access to fetch at 'https://api.d-id.com/animations' from origin '{my url}' 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.
Failed to load resource: net::ERR_FAILED
I implemented a retry method like some previous suggestions have said but it hasn't changed anything.
When I called the API using cURL on PowerShell it worked, but it doesn't in the browser.
Ultimately I'd like to be using the Talks API but I figured Animations would be a good place to start.
Thanks!