[Bug] Login blocked: CSP frame-ancestors directive violation for claude.ai domain
Bug Description
login was blocked with this message 'https://a.claude.ai/' violates the following Content Security Policy directive: "frame-ancestors https://claude.ai https://.claude.ai https://anthropic.com https://.anthropic.com https://.ant.dev". The request has been blocked.
Claude code asked me to login again using the /login command.
That provided a link which was opened in my WSL Firefox browser. However, when logging with Goolge my password failed, but it was correct. I copied the URL to my windows box and opened the link. The permission screen displayed showing already logged in but was spinning/taking a long time to load. Opening console showed the blocked request. It took several minutes before Accept returned my key and I could complete my login.
Environment Info
- Platform: linux
- Terminal: wsl-Ubuntu-24.04
- Version: 2.1.9
- Feedback ID: 3871469d-5df7-450b-91c7-fd802c480bf0
Errors
[{"error":"DH1: Insufficient permissions for global npm install.\n at $O0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3401:1145)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async WzA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3411:43)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:5334:15514","timestamp":"2026-01-26T22:53:57.748Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at Object.readSync (node:fs:744:3)\n at tryReadSync (node:fs:444:20)\n at Module.readFileSync (node:fs:490:19)\n at file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:464\n at SD (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:8:34385)\n at Object.readFileSync (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:433)\n at m62 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:4699:27125)\n at Object.call (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1638:942)\n at vs5 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2775:19655)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","timestamp":"2026-01-26T22:54:55.755Z"},{"error":"DH1: Insufficient permissions for global npm install.\n at $O0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3401:1145)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async WzA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3411:43)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:5334:15514","timestamp":"2026-01-26T22:58:51.496Z"},{"error":"DH1: Insufficient permissions for global npm install.\n at $O0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3401:1145)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async WzA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3411:43)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:5334:15514","timestamp":"2026-01-26T23:00:00.991Z"},{"error":"DH1: Insufficient permissions for global npm install.\n at $O0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3401:1145)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async WzA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3411:43)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:5334:15514","timestamp":"2026-01-26T23:12:12.899Z"},{"error":"MaxFileReadTokenExceededError: File content (25258 tokens) exceeds maximum allowed tokens (25000). Please use offset and limit parameters to read specific portions of the file, or use the GrepTool to search for specific content.\n at u62 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1629:13404)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async Object.call (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:1638:996)\n at async vs5 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:2775:19647)","timestamp":"2026-01-26T23:37:53.425Z"},{"error":"DH1: Insufficient permissions for global npm install.\n at $O0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3401:1145)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async WzA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3411:43)\n at async Object.current (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:5334:15514)","timestamp":"2026-01-26T23:42:12.655Z"},{"error":"DH1: Insufficient permissions for global npm install.\n at $O0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3401:1145)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async WzA (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3411:43)\n at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:5334:15514","timestamp":"2026-01-27T00:01:09.801Z"},{"error":"DH1: Insufficient permissions for global npm install.\n at $O0 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3401:1145)\n at p
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗