Skip to content

feat: add CORS to operations API - #1815

Merged
davidgamez merged 1 commit into
mainfrom
fix/operations-api-cors-preflight
Aug 25, 2026
Merged

feat: add CORS to operations API#1815
davidgamez merged 1 commit into
mainfrom
fix/operations-api-cors-preflight

Conversation

@davidgamez

@davidgamez davidgamez commented Aug 25, 2026

Copy link
Copy Markdown
Member

Summary:

Add CORS to the operations API.

Expected behavior:

A request with a preflight header is allowed.

Testing tips:

After deployment in DEV, this request must pass:

curl -i -X OPTIONS \
  "https://{dev-api-address}/operations-api/v1/operations/feeds?offset=0&limit=50" \
  -H "Origin: https://mobilitydatabase-operations-qmih98m11-mobility-data.vercel.app" \
  -H "Access-Control-Request-Method: GET" \
  -H "Access-Control-Request-Headers: authorization,content-type"

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the unit tests with ./scripts/api-tests.sh to make sure you didn't break anything
  • Add or update any needed documentation to the repo
  • Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
  • Linked all relevant issues
  • Include screenshot(s) showing how this pull request works and fixes the issue(s)

@davidgamez davidgamez changed the title add cors to op api feat: add CORS to operations API Aug 25, 2026
@davidgamez
davidgamez marked this pull request as ready for review August 25, 2026 17:11
@davidgamez
davidgamez merged commit 1a34175 into main Aug 25, 2026
31 of 32 checks passed
@davidgamez
davidgamez deleted the fix/operations-api-cors-preflight branch August 25, 2026 17:45
@davidgamez
davidgamez restored the fix/operations-api-cors-preflight branch August 26, 2026 13:22
@davidgamez
davidgamez deleted the fix/operations-api-cors-preflight branch August 26, 2026 13:33
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