Skip to content

Feat: Add Supabase auth headers to api CORS policy#824

Merged
ben-fornefeld merged 1 commit into
mainfrom
feat-add-supabase-auth-headers-to-api-cors-policy-e2b-2548
Jun 24, 2025
Merged

Feat: Add Supabase auth headers to api CORS policy#824
ben-fornefeld merged 1 commit into
mainfrom
feat-add-supabase-auth-headers-to-api-cors-policy-e2b-2548

Conversation

@ben-fornefeld
Copy link
Copy Markdown
Member

@ben-fornefeld ben-fornefeld commented Jun 24, 2025

In order to enable usage of the e2b SDK inside a browser environment + authorizing to the api via the user's Supabase Token, this PR updates the CORS AllowHeaders policy for the API accordingly .

These additions were tested on my local cluster while developing this dashboard feature.

@ben-fornefeld ben-fornefeld self-assigned this Jun 24, 2025
@linear
Copy link
Copy Markdown

linear Bot commented Jun 24, 2025

@ben-fornefeld ben-fornefeld added the feature New feature label Jun 24, 2025
@ben-fornefeld ben-fornefeld marked this pull request as ready for review June 24, 2025 15:53
dobrac

This comment was marked as outdated.

@ben-fornefeld
Copy link
Copy Markdown
Member Author

This allows managing the sandboxes create/kill from browser, but not the folders/files, etc.

i might specify - from browser with access to the supabase auth tokens of a user on the same cluster. api keys worked already inside browser environments before this addition

@ben-fornefeld ben-fornefeld merged commit aaa8815 into main Jun 24, 2025
24 checks passed
@ben-fornefeld ben-fornefeld deleted the feat-add-supabase-auth-headers-to-api-cors-policy-e2b-2548 branch June 24, 2025 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants