We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CORS needs to be allow-listed for unauthenticated requests (without the API key) otherwise browsers can't use it.
This can be simply done by moving the https://github.com/mudler/LocalAI/blob/07655c0c2e0e5fe2bca86339a12237b69d258636/core/http/app.go#L138C5-L138C16 block before the authorization middleware, or by adding an exception for the OPTIONS HTTP method in
OPTIONS
LocalAI/core/http/middleware/auth.go
Line 83 in 07655c0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CORS needs to be allow-listed for unauthenticated requests (without the API key) otherwise browsers can't use it.
This can be simply done by moving the https://github.com/mudler/LocalAI/blob/07655c0c2e0e5fe2bca86339a12237b69d258636/core/http/app.go#L138C5-L138C16 block before the authorization middleware, or by adding an exception for the
OPTIONS
HTTP method inLocalAI/core/http/middleware/auth.go
Line 83 in 07655c0
The text was updated successfully, but these errors were encountered: