Skip to content

[BUG] Click Authorize pm Claude code would like to connect, doesn't do anything #27694

Description

@stuaxo

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When I start Claude code it goes to claude.ai/oauth/authorize ...

When I click Authorize, nothing happens, the page still has an authorize and decline button.

If I look at the JS console in firefox while the page initially loads there are a bunch of JS errors along the lines of NetworkError while fetching resource, like the following:

What Should Happen?

I click Authorize and can use claude code

Error Messages/Logs

From firefox's JS console:
-Security-Policy: The page’s settings blocked the loading of a resource (connect-src) at https://a-api.anthropic.com/v1/m because it violates the following directive: “connect-src 'self' https://api.segment.io/ https://*.segment.io https://*.segment.com https://a-cdn.anthropic.com/ https://*.google.com https://*.facebook.com https://*.facebook.net https://*.doubleclick.net” [analytics.min.js:1:23763](https://a-cdn.anthropic.com/analytics.js/v1/LKJN8LsLERHEOXkw487o7qCTFOrGPimI/analytics.min.js)

Steps to Reproduce

Open Claude Code in a devcontainer. Click the link to authorise, open it in firefox.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.50

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstaleIssue is inactive

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions