Back
AnthropicClaude API
We've added support for usage of the SDK in browsers by returning CORS headers in the API responses
AI summary
Written by AI from the official notes. Check them for exact details.CORS headers are now included in API responses for browser SDK usage.
- Support for SDK usage in browsers added.
- CORS headers returned in API responses.
- Enable feature by setting 'dangerouslyAllowBrowser: true'.
Why it matters: Developers using the SDK in web applications should implement this change for browser compatibility.
Full release notes
- We've added support for usage of the SDK in browsers by returning CORS headers in the API responses. Set
dangerouslyAllowBrowser: truein the SDK instantiation to enable this feature.