8000 feat: bypass built-in CORS handling for workspace apps by Emyrk · Pull Request #17596 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

feat: bypass built-in CORS handling for workspace apps #17596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 19 commits into from

Conversation

Emyrk
Copy link
Member
@Emyrk Emyrk commented Apr 28, 2025

Continues #15669

This PR introduces a partial fix for #15096; it allows operators to specify the CORS behavior on a per-coder_app level.

This change requires cors_behavior to be set on a given coder_app; coder/terraform-provider-coder#309 introduces that new attribute.

coderd currently handles CORS automatically by handling preflight requests and stripping CORS headers from upstream coder_app responses.

Two CORS behaviors are defined in this PR:

  • simple: the current behavior of handling CORS within coderd
  • passthru: new behavior which transparently bypasses our CORS handling in coderd so the coder_app service is then fully responsible for handling CORS

We plan to further add this behavior to port shares.

The sharing level (owner, authenticated, public) is still respected, regardless of CORS behavior.

dannykopping and others added 14 commits November 28, 2024 12:04
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
Signed-off-by: Danny Kopping <danny@coder.com>
@Emyrk Emyrk changed the title Stevenmasley/cors feat: bypass built-in CORS handling for workspace apps Apr 28, 2025
Copy link

🚀 Deploying PR 17596 ...

@github-actions github-actions bot added the stale This issue is like stale bread. label May 7, 2025
@f0ssel f0ssel requested review from cstyan and removed request for cstyan May 8, 2025 14:38
@github-actions github-actions bot removed the stale This issue is like stale bread. label May 9, 2025
@github-actions github-actions bot added the stale This issue is like stale bread. label May 16, 2025
@github-actions github-actions bot closed this May 19, 2025
@Emyrk Emyrk reopened this May 19, 2025
@Emyrk Emyrk requested a review from spikecurtis as a code owner May 19, 2025 13:48
@Emyrk Emyrk requested a review from johnstcn as a code owner May 19, 2025 13:48
@Emyrk Emyrk closed this May 19, 2025
@github-actions github-actions bot locked and limited conversation to collaborators May 19, 2025
@Emyrk
Copy link
Member Author
Emyrk commented May 19, 2025

Sorry for the github noise. This is not done, it is still relevant, I just don't have the time to take this over the line.

@Emyrk Emyrk removed request for spikecurtis and johnstcn May 19, 2025 13:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
stale This issue is like stale bread.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0