Claude's API now supports CORS requests, enabling client-side applications
1–10 of 173 posts
Re: Claude's API now supports CORS requests, enabling client-side applications
#2Re: Claude's API now supports CORS requests, enabling client-side applications
#3Maybe for internal development, but definitely not for a user-facing app. Making less impactful of a change. But still nice
Re: Claude's API now supports CORS requests, enabling client-side applications
#4Re: Claude's API now supports CORS requests, enabling client-side applications
#5Maybe for internal development, but definitely not for a user-facing app. Making less impactful of a change. But still nice
I'm thinking it enables apps where users can bring their own keys without exposing it to my server.
Re: Claude's API now supports CORS requests, enabling client-side applications
#6The "dangerous" part of "anthropic-dangerous-direct-browser-access" is because you should never expose API keys in client code.
Or keys obtained on the client's behalf.
Re: Claude's API now supports CORS requests, enabling client-side applications
#7Maybe for internal development, but definitely not for a user-facing app. Making less impactful of a change. But still nice
I'm thinking it enables apps where users can bring their own keys without exposing it to my server.
Re: Claude's API now supports CORS requests, enabling client-side applications
#8The "dangerous" part of "anthropic-dangerous-direct-browser-access" is because you should never expose API keys in client code.
Unless it's the client's keys. Or keys obtained on the client's behalf.
Re: Claude's API now supports CORS requests, enabling client-side applications
#9Hilarious that even the LLM warned against this
Re: Claude's API now supports CORS requests, enabling client-side applications
#101. A live transcription and translation app that uses microphone input. This is useful for watching proprietary content and facilitating communication.
2. An app that translates SRT subtitles into various languages.
I opt for the "bring your own keys" model for two main reasons:
1. Low maintenance: As a professional software developer, I already maintain a lot of software, and the last thing I want is to maintain my side projects. My goal is to write and distribute these apps so they continue working without requiring constant attention from me.
2. Low cost: This model allows me to distribute the apps without ads. By having users provide their own keys, I can keep operational costs down and avoid the need for monetization through advertising.
This approach enables me to create and share useful tools while keeping both my maintenance burden and user costs to a minimum.