Cors Errorn

I am attempting to use the nvidia/llama-3.1-nemotron-70b-instruct via API, but I am encountering a CORS error. The HTTP request is being made using JavaScript’s fetch function in the Chrome browser.

Anthropic has a similar restriction but we can set a header with:
let HTTP_HEADERS = { .... "anthropic-dangerous-direct-browser-access": "true" };

Would like to know if is the something similar for Nvidia endpoint: https://integrate.api.nvidia.com/v1/chat/completions
If not would suggest to be added.

Hi @SolarisMind, thanks for raising this – I’ll bring this up and see if we’re able to make the change

1 Like