Skip to content

fix(cors): restore preprod and production preflight handling#253

Merged
mottych merged 2 commits intomasterfrom
hotfix/CORS-issues
Mar 4, 2026
Merged

fix(cors): restore preprod and production preflight handling#253
mottych merged 2 commits intomasterfrom
hotfix/CORS-issues

Conversation

@mottych
Copy link
Owner

@mottych mottych commented Mar 4, 2026

Summary

  • configure coaching API Gateway CORS to always return preflight headers for all supported purposepath.app frontend origins
  • relax app-level CORS request header allowlist to * so browser preflight does not fail on dynamic tracing/monitoring headers
  • strengthen production deploy smoke test to validate preflight behavior across all production frontend origins

Test plan

  • Deploy to preprod
  • Run preflight request to OPTIONS /coaching/api/v1/ai/execute-async with origin https://purposepath.app
  • Verify Access-Control-Allow-Origin, Access-Control-Allow-Credentials, and Access-Control-Allow-Headers are present and correct

mottych added 2 commits March 4, 2026 15:47
Ensure browser preflight requests always return CORS headers by configuring API Gateway for allowed frontend origins and relaxing app-level allowed headers. Add a stronger production smoke test that validates all purposepath.app frontend origins and common tracing headers to prevent regressions.

Made-with: Cursor
Add the coaching Pulumi preprod stack configuration file with AWS region so future hotfix branches can deploy to preprod without manual stack config setup.

Made-with: Cursor
@mottych mottych merged commit e932593 into master Mar 4, 2026
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.

1 participant