Skip to content

Send API requests directly from the client #1606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Fortinpa opened this issue Apr 6, 2025 · 0 comments
Open

Send API requests directly from the client #1606

Fortinpa opened this issue Apr 6, 2025 · 0 comments
Labels
feature A pretty vague description of how a capability of our software can be added or improved.

Comments

@Fortinpa
Copy link

Fortinpa commented Apr 6, 2025

Motivation

Sending API requests directly from the client would reduce the load on the server and enable static hosting under the constraint that users always need to bring their own API key and the API provider allows CORS requests. This might even enable hosting a public instance.

Scope

Requests to API providers allowing CORS requests are made directly from the client if an API key is provided, rather than passing through an interactive server.

Options

It might be possible to run an instance of the server in a web worker, along with some middleware that filters for requests containing an API key.

Related

/

@Fortinpa Fortinpa added the feature A pretty vague description of how a capability of our software can be added or improved. label Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A pretty vague description of how a capability of our software can be added or improved.
Projects
None yet
Development

No branches or pull requests

1 participant