Skip to content

fix(google-docs): remove X-Contentful-App-Definition-Id from agents API headers [INTEG-3890]#10967

Merged
Franco Banfi (FBanfi) merged 1 commit into
masterfrom
google-docs-header-fix
May 7, 2026
Merged

fix(google-docs): remove X-Contentful-App-Definition-Id from agents API headers [INTEG-3890]#10967
Franco Banfi (FBanfi) merged 1 commit into
masterfrom
google-docs-header-fix

Conversation

@FBanfi
Copy link
Copy Markdown
Collaborator

Summary

  • X-Contentful-App-Definition-Id was included in AGENTS_API_HEADERS, sent on every request to the local agents API dev server (VITE_LOCAL_AGENTS_API_BASE_URL)
  • The agents API does not list this header in Access-Control-Allow-Headers, causing all preflight requests to fail with a CORS error when running locally

Changes

  • apps/google-docs/src/services/agents-api.ts — removed X-Contentful-App-Definition-Id from AGENTS_API_HEADERS

…PI headers

Header was causing CORS preflight failures — not allowed by Access-Control-Allow-Headers in the agents API response.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@FBanfi Franco Banfi (FBanfi) changed the title fix(google-docs): remove X-Contentful-App-Definition-Id from agents API headers fix(google-docs): remove X-Contentful-App-Definition-Id from agents API headers [INTEG-3890] May 7, 2026
@FBanfi Franco Banfi (FBanfi) marked this pull request as ready for review May 7, 2026 15:58
@FBanfi Franco Banfi (FBanfi) requested review from a team as code owners May 7, 2026 15:58
@FBanfi Franco Banfi (FBanfi) merged commit a4ade9c into master May 7, 2026
15 of 16 checks passed
@FBanfi Franco Banfi (FBanfi) deleted the google-docs-header-fix branch May 7, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants