PowerShell
PS C:\Users\you> ollama serve
$env:OLLAMA_ORIGINS="*"
Applies only to the current PowerShell window.
[Environment]::SetEnvironmentVariable("OLLAMA_ORIGINS", "*", "User")
Open a new terminal and restart Ollama after running this.
[Environment]::SetEnvironmentVariable("OLLAMA_ORIGINS", "*", "Machine")
Run PowerShell as Administrator. This applies system-wide.