Skip to content

Add CORS middleware and a identification route to the fallback app#345

Open
julianstirling wants to merge 2 commits into
mainfrom
fallback-cors
Open

Add CORS middleware and a identification route to the fallback app#345
julianstirling wants to merge 2 commits into
mainfrom
fallback-cors

Conversation

@julianstirling
Copy link
Copy Markdown
Contributor

It is hard query the fallback app over the API as it has no identification and throws a CORS error from browser code.

The CORS middleware is essential for getting OpenFlexure Connect to identify the callback. The extra identification route stops us having to search for known strings in the openapi.json description which seems fragile.

It sort of feels like a feature that would should wait for v0.3.0. It is also really useful to have very soon.

It is hard query the fallback app over the API as it has no identification
and throws a CORS error from browser code.
@julianstirling julianstirling requested a review from rwb27 May 15, 2026 23:12
@barecheck
Copy link
Copy Markdown

barecheck Bot commented May 15, 2026

Barecheck - Code coverage report

Total: 96.87%

Your code coverage diff: 0.01% ▴

✅ All code changes are covered

Copy link
Copy Markdown
Collaborator

@rwb27 rwb27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a very uncontroversial good idea.

Given that we have tested release candidates for v0.2.0 I propose we release 0.2 from the same code as rc2 and then make 0.2.1 which includes this and the testing code for manual thing slots.

It's definitely a non breaking change, and it doesn't make major internal changes either. This is in line with what the docs currently say on releases.

For simplicity it might be worth holding off clicking merge until we've released 0.2.

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