The Native Javascript Websocket API doesn’t allow to pass an Authentication Bearer Header. This is only possible in NodeJS (but not standard)
Please allow us to pass our API KEY using a native JS method. For example as a query parameter or inside a message after establishing the WSS connexion
6 Likes
I second this request. I have existing Voice infrastructure running on Cloudflare Workers, which uses a custom implementation of WebSocket - Web APIs | MDN and the client cannot set any custom headers.
Another option could be to use Basic Auth, which allows us to pass the credentials in the URL.
2 Likes
I’m also going to bump up this request too.
+1 i’m stuck with no possibility to use this API without server.
For those who were stuck here, OpenAI announced a new WebRTC connection that should work!