Skip to content

fix: remove web middleware from github setup and exchange-code routes#2631

Open
kaylenmistry wants to merge 1 commit intodiggerhq:developfrom
kaylenmistry:kaylenmistry/fix-github-403-connect
Open

fix: remove web middleware from github setup and exchange-code routes#2631
kaylenmistry wants to merge 1 commit intodiggerhq:developfrom
kaylenmistry:kaylenmistry/fix-github-403-connect

Conversation

@kaylenmistry
Copy link
Copy Markdown

@kaylenmistry kaylenmistry commented Apr 2, 2026

DISCLAIMER: I consulted Claude Opus to understand the codebase and come up with a solution based on the issue described below.

These endpoints are proxied through the UI, which handles authentication before forwarding the request. The backend web middleware expects a session cookie that is not present in proxied requests, causing a 403 on /orchestrator/github/setup.

This aligns /github/setup and /github/exchange-code with /github/callback, which was already registered outside the auth group for the same reason.

image image

These endpoints are proxied through the UI, which handles authentication
before forwarding the request. The backend web middleware expects a session
cookie that is not present in proxied requests, causing a 403. This aligns
setup and exchange-code with callback, which was already registered outside
the auth group for the same reason.
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