The Ollama API (a service for using LLM models locally) only accepts POST requests that originate from localhost. As you know. all the code for these extensions runs from chrome-extension://id. Is there an elegant solution to make this POST request to the API so that its ORIGIN is localhost (127)? *Both the extension and the Ollama server run on the same machine. It seems these colleagues manage to do it, but I can't figure out how:...
Originally asked by luishg on Stack Exchange (stackoverflow) (CC BY-SA 4.0).