Skip to content
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

[Bug] Anthropic CORS error #5452

Open
kylix31 opened this issue Sep 16, 2024 · 8 comments
Open

[Bug] Anthropic CORS error #5452

kylix31 opened this issue Sep 16, 2024 · 8 comments
Labels
bug Something isn't working planned planned feature, will support in the future

Comments

@kylix31
Copy link

kylix31 commented Sep 16, 2024

📦 Deployment Method

Official installation package

📌 Version

2.15.2

💻 Operating System

Other Linux

📌 System Version

Arch 6.10.9-zen1-2-zen

🌐 Browser

Other

📌 Browser Version

Electron

🐛 Bug Description

When I try to use any Anthropic model, I catch this error:

{
  "type": "error",
  "error": {
    "type": "authentication_error",
    "message": "CORS requests must set 'anthropic-dangerous-direct-browser-access' header"
  }
}

📷 Recurrence Steps

No response

🚦 Expected Behavior

No response

📝 Additional Information

No response

@kylix31 kylix31 added the bug Something isn't working label Sep 16, 2024
@nextchat-manager
Copy link

Please follow the issue template to update description of your issue.

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug]

@kylix31 kylix31 changed the title [Bug] [Bug] Anthropic CORS error Sep 16, 2024
@QAbot-zh
Copy link

更新版本测试了吗,我记得之前就有类似的帖子似乎是解决了的

#5429

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Have you tested the updated version? I remember there was a similar post before and it seems to have solved the problem.

#5429

@Blackmesa-Canteen
Copy link

Blackmesa-Canteen commented Sep 17, 2024

Not fixed yet in MacOS APP Version 2.15.2 (20240913.094417). Error message:

{
  "type": "error",
  "error": {
    "type": "authentication_error",
    "message": "CORS requests must set 'anthropic-dangerous-direct-browser-access' header"
  }
}

@sunilsoni
Copy link

Anyone knows how to fix it?

Copy link
Contributor

using tauri http API replace fetch in app,can fix CORS error

@Dogtiti Dogtiti added the planned planned feature, will support in the future label Sep 18, 2024
@sunilsoni
Copy link

using tauri http API replace fetch in app,can fix CORS error

In Mac App where can i do this settings? can you share steps or more details ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working planned planned feature, will support in the future
Projects
None yet
Development

No branches or pull requests

7 participants