CursorAI fails to connect to LocalAI due to CORS #3587
Unanswered
davidgfolch
asked this question in
Q&A
Replies: 2 comments
-
I've finally implemented a docker-compse to bypass Cursor(AI) OpenAI to use LocalAI. Let me now if you are interested & will create a PR to add in examples!!! |
Beta Was this translation helpful? Give feedback.
0 replies
-
But chat doesn't work & I couln't see any error in logs: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm trying to bypass CursorAI free licence limitations using LocalAI (docker latest-aio-cpu) as OpenAI server. But CursorAI is throwing a CORS error because OPTIONS method is not found on LocalAI.
To reproduce the error just go to CursorAI File->Preferences->CursorAI->Models setings and set OpenAI api_key and LocalAI server:
I've been having a look at the LocalAI implementation, I've no idea about GO/Fiber, but we could implement some CORS rules when host is localhost & client is Geko (or so).
Did not found any other solution on CursorAI/VSCode to disable CORS.
(See my solution docker-compose with nginx reverse proxy).
Beta Was this translation helpful? Give feedback.
All reactions