Skip to content

Add Access-Control-Allow-Origin to remote-access responses#100

Open
m10653 wants to merge 2 commits into
phyphox:masterfrom
m10653:allow-cross-origin
Open

Add Access-Control-Allow-Origin to remote-access responses#100
m10653 wants to merge 2 commits into
phyphox:masterfrom
m10653:allow-cross-origin

Conversation

@m10653
Copy link
Copy Markdown

@m10653 m10653 commented May 8, 2026

Adds Access-Control-Allow-Origin: * to all responses served by the
remote-access HTTP server, so cross-origin browser pages can read from
the API.

Motivation

Lack of CORS headers makes it hard to build standalone dashboards, bookmarklets,websites, or static
HTML tools that talk to a Phyphox phone app even when the user is on the same local network.

I'm aware this PR may not be accepted as relaxing CORS on the server does have some security implications.

@Staacks
Copy link
Copy Markdown
Member

Staacks commented May 8, 2026

Thanks, makes perfect sense. In fact, I just discussed a use-case two days ago where CORS could be a headache.

I plan to merge our current development branches over the next days to finally work on a beta for the next release and I will include this PR.

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.

2 participants