[PR #5851] [MERGED] Lowercase hostname for CORS. #11941

Closed
opened 2026-04-12 23:43:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5851
Author: @rick-github
Created: 7/22/2024
Status: Merged
Merged: 12/10/2024
Merged by: @jmorganca

Base: mainHead: cors


📝 Commits (9)

  • 305ebda Lowercase hostname for CORS.
  • e1e0d59 Merge branch 'ollama:main' into cors
  • ae66894 Merge branch 'ollama:main' into cors
  • 6fdf823 Merge branch 'ollama:main' into cors
  • ec48637 Merge branch 'ollama:main' into cors
  • 0cfc351 Merge branch 'ollama:main' into cors
  • eabad80 Merge branch 'ollama:main' into cors
  • 1212885 Merge branch 'ollama:main' into cors
  • 73a8560 String insensitive match for Host and hostname

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 server/routes.go (+3 -1)

📄 Description

Origins check fails when Host header is not lowercase.

Fixes https://github.com/ollama/ollama/issues/5838.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/5851 **Author:** [@rick-github](https://github.com/rick-github) **Created:** 7/22/2024 **Status:** ✅ Merged **Merged:** 12/10/2024 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `cors` --- ### 📝 Commits (9) - [`305ebda`](https://github.com/ollama/ollama/commit/305ebda32f0b5c724678bdbdd793a1b3fdec2e8f) Lowercase hostname for CORS. - [`e1e0d59`](https://github.com/ollama/ollama/commit/e1e0d59a16eaab067f56f04d49211a82094cf121) Merge branch 'ollama:main' into cors - [`ae66894`](https://github.com/ollama/ollama/commit/ae66894614249c55cd424fbdac7175015148d481) Merge branch 'ollama:main' into cors - [`6fdf823`](https://github.com/ollama/ollama/commit/6fdf8235dd39b48be5b1546ed4956ec4d13cbfeb) Merge branch 'ollama:main' into cors - [`ec48637`](https://github.com/ollama/ollama/commit/ec486370fa354ed51922f1c033717bcaaf95d1c6) Merge branch 'ollama:main' into cors - [`0cfc351`](https://github.com/ollama/ollama/commit/0cfc35140d94d35bbaa42b33447fbd877a3e8d12) Merge branch 'ollama:main' into cors - [`eabad80`](https://github.com/ollama/ollama/commit/eabad80c6a73dd7260f7bc96dabf7aee753491f8) Merge branch 'ollama:main' into cors - [`1212885`](https://github.com/ollama/ollama/commit/121288553d42e97ba4b9543cb94fbc0dc15e4572) Merge branch 'ollama:main' into cors - [`73a8560`](https://github.com/ollama/ollama/commit/73a8560dba4e9ea581ff78660cff14530d79bd3e) String insensitive match for Host and hostname ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `server/routes.go` (+3 -1) </details> ### 📄 Description Origins check fails when Host header is not lowercase. Fixes https://github.com/ollama/ollama/issues/5838. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:43:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#11941