-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS: Message API return CORS issues. #410
Comments
Before sending POST request, broswer will first send an OPTIONS preflight request to API (e.g. |
Also running into this issue. Anthropic APIs are not callable from the client-side without a proxy server |
Also seeing this issue when calling from localhost. |
Dup of #219 |
Any updates on this? I'm creating an interface but it doesn't work for Anthropic due to this error. |
Step to Reproduce:
`const anthropic = new Anthropic({
apiKey: process.env.NEXT_PUBLIC_ANTHROPIC_API_KEY,
});
function MyDiagrams() {
const [loading, setLoading] = useState(false);
The text was updated successfully, but these errors were encountered: