Skip to main content

Mic's

Silence is golden.

"ThunderAI" Thunderbird Addon - Ollama CORS Information


The Ollama CORS configuration depends on your operating system and how you're running the local server.
On this page you can find all the information gathered with the help of ThunderAI users.
If you want to contribute a new configuration, please submit a new issue.

Summary


Docker Desktop

When running a new container, open the "Optional settings" and add an "Environment variable" with the following values:
  • Variable: OLLAMA_ORIGINS
  • Value: moz-extension://*

Docker Command Line

When running a new container, add this option to the docker command line:
-e 'OLLAMA_ORIGINS=moz-extension://*'

Docker Compose

Thanks to Amras2322

When configuring the Ollama service add the OLLAMA_ORIGINS option in the environment section in the docker-compose.yml file:
services:
  ollama:
    image: ollama/ollama:latest
    container_name: ollama
        [...]
    environment:
    - OLLAMA_ORIGINS=moz-extension://*

Ollama on Windows

Thanks to actXc

  1. Open Windows Settings (Windows key + I)
  2. Search for "environment variables"
  3. Click on "Edit the system environment variables"
  4. In the new window, click "Environment Variables"
  5. Under "System variables", click "New"
  6. Variable name: OLLAMA_ORIGINS
  7. Variable value: moz-extension://*
  8. Confirm with "OK"
  9. Restart your PC

Ollama on Linux

Thanks to lakonis

### Editing /etc/systemd/system/ollama.service.d/override.conf
### Anything between here and the comment below will become the contents of the drop-in file

[Service]
Environment="OLLAMA_ORIGINS=moz-extension://*"

### Edits below this comment will be discarded
[...]
            
Tested on Linux Manjaro

Ollama on macOS

Thanks to jatoko

  1. Open terminal
  2. Run the following command in the terminal:
    launchctl setenv OLLAMA_ORIGINS "moz-extension://*"
  3. (Re)start Ollama (e.g., quit, start)

Go back to addon page