mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #321] [CLOSED] serve: add CORS preflight (OPTIONS), reverse-proxy header support, and X-Accel-Buffering for SSE #2575
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2575
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/321
Author: @BlitzenCats
Created: 10/1/2026
Status: ❌ Closed
Base:
main← Head:feat/reverse-proxy-cors📝 Commits (1)
613feeaserve: add CORS preflight (OPTIONS), reverse-proxy header support, and X-Accel-Buffering for SSE📊 Changes
2 files changed (+42 additions, -3 deletions)
View changed files
📝
serve/server.py(+20 -3)📝
serve/test_server.py(+22 -0)📄 Description
Summary
This PR adds support for web-based API clients (CORS) and reverse proxies / tunnels (such as Cloudflare Tunnel, Tailscale Funnel, and Nginx) when remotely serving Strata or connecting third-party web frontends.
Key Changes
CORS & Preflight (\OPTIONS\ 204 No Content):
Reverse Proxy Origin Validation:
SSE Stream Buffering (\X-Accel-Buffering: no):
Unit Tests:
Authored by @BlitzenCats & Gemini
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.