claude-code - 💡(How to fix) Fix [BUG] Claude for Excel (Office add-in) OTLP telemetry fails with CORS error [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#56401Fetched 2026-05-06 06:29:03
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×2unlabeled ×1

Error Message

Error Messages/Logs

  1. Observe CORS error on POST /v1/logs in Network tab and console

Code Example

Failed to load resource: Request header field dd-api-key is not allowed by Access-Control-Allow-Headers

---

Failed to load resource: Request header field dd-api-key is not allowed by Access-Control-Allow-Headers https://otlp.datadoghq.eu/v1/traces

Failed to load resource: Request header field dd-api-key is not allowed by Access-Control-Allow-Headers https://otlp.datadoghq.eu/v1/logs
RAW_BUFFERClick to expand / collapse

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?

Description : I need observability for Claude Office agents (eg. Claude in Excel, Claude in Powerpoint, etc...). I configured it correctly in the admin console : https://claude.ai/admin-settings/office-agents

The Excel add-in sends OTLP telemetry directly from the WebView (https://pivot.claude.ai) to the configured OTLP endpoint, and it fails with:

Failed to load resource: Request header field dd-api-key is not allowed by Access-Control-Allow-Headers

The add-in should either route telemetry through the pivot.claude.ai backend, or the OTLP endpoint needs CORS headers that allow dd-api-key.

What Should Happen?

  • No network errors, traces collected successfully
  • Traces or logs of Claude in Excel user interaction should be visible in Datadog with a query such as @otel.service.name:office-agent or @service.name:office-agent

Error Messages/Logs

Failed to load resource: Request header field dd-api-key is not allowed by Access-Control-Allow-Headers https://otlp.datadoghq.eu/v1/traces

Failed to load resource: Request header field dd-api-key is not allowed by Access-Control-Allow-Headers https://otlp.datadoghq.eu/v1/logs

Steps to Reproduce

  1. Configure OTLP endpoint in admin console : https://claude.ai/admin-settings/office-agents
  • OTLP endpoint: https://otlp.datadoghq.eu
  • OTLP protocol: http/protobuf
  • OLTP headers: dd-api-key=********...**** (I'm sure the config is ok as I used the button "copy settings from Cowork", and Cowork telemetry does appear in my Datadog tenant)
  1. Use the add-in in Excel on macOS, in Safari
  2. Open Safari DevTools/inspector
  3. Prompt anything to Claude in Excel
  4. Observe CORS error on POST /v1/logs in Network tab and console
<img width="1491" height="860" alt="Image" src="https://github.com/user-attachments/assets/de08d120-a4b0-4784-879e-0989acca89fe" />

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

Claude by Anthropic for Excel Version 1.0.0.8

Platform

Other

Operating System

macOS

Terminal/Shell

Other

Additional Information

<img width="474" height="301" alt="Image" src="https://github.com/user-attachments/assets/c95d001b-4bd8-4939-9587-a31bad6b0a6c" /> --- <img width="1491" height="860" alt="Image" src="https://github.com/user-attachments/assets/de08d120-a4b0-4784-879e-0989acca89fe" />

extent analysis

TL;DR

The Excel add-in fails to send OTLP telemetry due to a CORS error caused by a missing Access-Control-Allow-Headers header for dd-api-key.

Guidance

  • Verify that the OTLP endpoint is correctly configured to include the necessary CORS headers, specifically Access-Control-Allow-Headers with dd-api-key.
  • Consider routing telemetry through the pivot.claude.ai backend as an alternative to configuring CORS headers on the OTLP endpoint.
  • Check the Datadog documentation for any specific requirements or recommendations for configuring OTLP endpoints with CORS headers.
  • Test the add-in with a different browser or environment to determine if the issue is specific to Safari on macOS.

Example

No code snippet is provided as the issue is related to configuration and CORS headers.

Notes

The issue may be resolved by updating the OTLP endpoint configuration or by using the pivot.claude.ai backend as a proxy for telemetry data.

Recommendation

Apply workaround: Route telemetry through the pivot.claude.ai backend until the OTLP endpoint can be updated to include the necessary CORS headers.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Claude for Excel (Office add-in) OTLP telemetry fails with CORS error [1 participants]