Seeking CORS Solution for Frontend-Only App Integrating with Sambanova API

Hi everyone! I’m using the Astro framework to build my frontend-only web application that interacts directly with the Sambanova API, and I’ve run into a CORS issue. The users of my app are meant to provide their own API keys to interact with the Sambanova service, and there is no backend involved in my project.

Currently, my app is getting blocked due to CORS policies: No 'Access-Control-Allow-Origin' header is present on the requested resource . Since there’s no backend where I can set up a proxy, I was hoping someone here could suggest a workaround or solution for handling CORS in this type of frontend-only context.

Any advice or insights on how to resolve this would be greatly appreciated! Thanks in advance!

1 Like

Hey Malawad!
Thanks for stopping by, we’ve seen a few of the cors requests. I’ll add yours to give it additional visibility.

Thanks!
Seth

1 Like

hello, is this api have cors ? and we should req our app to not get block?

Hello Aldobesma!

Welcome to the SambaNova community!
At this time we have not implemented cors support. We do have examples for proxies in other threads.

Thanks!
Seth Kneeland