Skip to content

security(CropLens): restrict local Socket.IO browser origins - #14

Merged
FuTseYi merged 4 commits into
mainfrom
security/local-socket-origins
Oct 8, 2026
Merged

FuTseYi merged 4 commits into
mainfrom
security/local-socket-origins

Conversation

@FuTseYi

@FuTseYi FuTseYi commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Changes

  • Replace Flask-SocketIO's wildcard cors_allowed_origins="*" with explicit loopback Vite origins (localhost:8100, 127.0.0.1:8100).
  • Add dependency-free policy regression tests and local-websocket guidance.

Limits

  • This is defense-in-depth for the local-only development demo, not authentication or authorization.
  • Browser origins from a different host/port will be rejected; do not expose this service to a LAN or public network until a real access-control design is implemented.
  • Normal Vue/Spring Boot builds and Python regression tests should all pass before merging.

@FuTseYi
FuTseYi merged commit 84c09c0 into main Oct 8, 2026
4 checks passed
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