Skip to content

Anthropic API Code Needs Change in Copilot #677

Description

@jhmonroe

See attached error when trying to use Copilot with a paid-with-balance Anthropic API Key

"CORS requests must set 'anthropic-dangerous-direct-browser-access' header"

According to this ChatGPTNextWeb/NextChat#5429 the API was changed in the last month and perhaps Copilot needs to have this line of code added?

This person also details the update: https://simonwillison.net/2024/Aug/23/anthropic-dangerous-direct-browser-access/

I'm guessing this isn't something I can fix myself? I tried adding "anthropic-dangerous-direct-browser-access": true, to the data.json file or main.js but this isn't enough to avoid the error...

Thanks!
Screen Shot 2024-09-26 at 1 00 33 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions