CORS error

I have a chat interface where the request is made directly to the SambaNova endpoint without any proxy, as I am using JavaScript through the browser and I am getting a CORS error.

Most AI providers do not have this limitation, I know that Anthopic has something similar, but they allow passing a parameter (anthropic-dangerous-direct-browser-access = true) that disables CORS, does anyone know if there is such an option for the SambaNova API?

1 Like

Sorry for the difficulty in expressing myself in English.

1 Like

@ana.pe.cure welcome to the community.

We by design do not allow cors and hence the need to use a proxy .

This thread has a discussion on it and sample proxy code

-Coby