[PR #2441] [CLOSED] Allow Tauri requests by default (tauri://) #42139

Closed
opened 2026-04-24 21:55:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/2441
Author: @da-z
Created: 2/10/2024
Status: Closed

Base: mainHead: da-z/cors-test


📝 Commits (5)

  • 31b6882 refactor: extract CORS config in its own function and test it
  • 815ef53 refactor: extract CORS schema
  • 8a29832 refactor: upper case
  • 1b27f8c Merge branch 'ollama:main' into da-z/cors-test
  • f948471 feat: support Tauri requests by default

📊 Changes

4 files changed (+119 additions, -97 deletions)

View changed files

📝 go.mod (+20 -18)
📝 go.sum (+41 -67)
📝 server/routes.go (+24 -12)
📝 server/routes_test.go (+34 -0)

📄 Description

In preparation of maybe supporting tauri:// schema by default, I refactored a bit the CORS part of the config and added a test.


🔄 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/2441 **Author:** [@da-z](https://github.com/da-z) **Created:** 2/10/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `da-z/cors-test` --- ### 📝 Commits (5) - [`31b6882`](https://github.com/ollama/ollama/commit/31b6882829ca7843b1c4da43d550951bdcac7d6d) refactor: extract CORS config in its own function and test it - [`815ef53`](https://github.com/ollama/ollama/commit/815ef5339be195f3d6a3abe3ecef7b6d7daad526) refactor: extract CORS schema - [`8a29832`](https://github.com/ollama/ollama/commit/8a29832a1ebc572d743517d1df11943f9add99a4) refactor: upper case - [`1b27f8c`](https://github.com/ollama/ollama/commit/1b27f8c7363ced74d91de701084e14daab60e236) Merge branch 'ollama:main' into da-z/cors-test - [`f948471`](https://github.com/ollama/ollama/commit/f94847190df0dd275c34dab1543fe6487fd56b0c) feat: support Tauri requests by default ### 📊 Changes **4 files changed** (+119 additions, -97 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+20 -18) 📝 `go.sum` (+41 -67) 📝 `server/routes.go` (+24 -12) 📝 `server/routes_test.go` (+34 -0) </details> ### 📄 Description In preparation of maybe supporting `tauri://` schema by default, I refactored a bit the CORS part of the config and added a test. --- <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-24 21:55:42 -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#42139