de-id / live-streaming-demo

Use D-ID's live streaming API to stream a talking presenter
MIT License
165 stars 136 forks source link

CORS ERROR happened #2

Closed Tsuyoshi-Ishikawa closed 1 year ago

Tsuyoshi-Ishikawa commented 1 year ago

I tried to connect and sometimes got a cors error (it didn't happen yesterday). I think Access-Control-Allow-Origin has a problem on the server side, so I would like you to fix that.

Screenshot 2023-03-24 at 22 56 40
doubleLLL3 commented 1 year ago

can check if the key in api.json file is right, no Basic prefix, just the token from Settings page. right:

{
    "key": "ZG91YmxxxxxxxxC5jb20:d9eVHIxxxxxxxxKbP",
    "url": "https://api.d-id.com"
}

wrong:

{
    "key": "Basic ZG91YmxxxxxxxxC5jb20:d9eVHIxxxxxxxxKbP",
    "url": "https://api.d-id.com"
}
Tsuyoshi-Ishikawa commented 1 year ago

Thanks! Resolved!