[PR #4013] [MERGED] Allow CORS domains to be configured #9817

Closed
opened 2026-02-07 06:09:03 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/4013
Author: @crobibero
Created: 8/30/2020
Status: Merged
Merged: 9/8/2020
Merged by: @anthonylavado

Base: masterHead: dynamic-cors


📝 Commits (9)

  • 3c0484c Allow for dynamic cors response
  • eba0d9e Always allow set credentials header
  • e97ccd8 Remove DynamicCorsMiddleware
  • 65d05f9 Merge remote-tracking branch 'upstream/master' into dynamic-cors
  • 1de22af Merge remote-tracking branch 'upstream/master' into dynamic-cors
  • 8a08111 Merge remote-tracking branch 'upstream/master' into dynamic-cors
  • 2c05d53 Convert to ICorsPolicyProvider
  • 527ffaa clean docs
  • 342de39 Move CorsPolicyProvider to Jellyfin.Server.Configuration

📊 Changes

5 files changed (+61 additions, -37 deletions)

View changed files

Jellyfin.Server/Configuration/CorsPolicyProvider.cs (+49 -0)
📝 Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs (+5 -5)
Jellyfin.Server/Models/ServerCorsPolicy.cs (+0 -30)
📝 Jellyfin.Server/Startup.cs (+1 -2)
📝 MediaBrowser.Model/Configuration/ServerConfiguration.cs (+6 -0)

📄 Description

Allow for configuring CORS origins.
If no origin is set- use origin from request.


🔄 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/jellyfin/jellyfin/pull/4013 **Author:** [@crobibero](https://github.com/crobibero) **Created:** 8/30/2020 **Status:** ✅ Merged **Merged:** 9/8/2020 **Merged by:** [@anthonylavado](https://github.com/anthonylavado) **Base:** `master` ← **Head:** `dynamic-cors` --- ### 📝 Commits (9) - [`3c0484c`](https://github.com/jellyfin/jellyfin/commit/3c0484cc9730c06892b996d0b884a05ecada07af) Allow for dynamic cors response - [`eba0d9e`](https://github.com/jellyfin/jellyfin/commit/eba0d9e387dc0375628acfd81957ff180c82d8df) Always allow set credentials header - [`e97ccd8`](https://github.com/jellyfin/jellyfin/commit/e97ccd87fb74c34222eccf03493a56144065eaa4) Remove DynamicCorsMiddleware - [`65d05f9`](https://github.com/jellyfin/jellyfin/commit/65d05f92ac7f7e5398fa49d5a5fdf0d984ce6989) Merge remote-tracking branch 'upstream/master' into dynamic-cors - [`1de22af`](https://github.com/jellyfin/jellyfin/commit/1de22af6466a691e023dd70b2032d5e3af3bdc6b) Merge remote-tracking branch 'upstream/master' into dynamic-cors - [`8a08111`](https://github.com/jellyfin/jellyfin/commit/8a08111adcc03d93acec60c783d204f98e99c83a) Merge remote-tracking branch 'upstream/master' into dynamic-cors - [`2c05d53`](https://github.com/jellyfin/jellyfin/commit/2c05d53b06855eab76012ba70da00ec62af787c3) Convert to ICorsPolicyProvider - [`527ffaa`](https://github.com/jellyfin/jellyfin/commit/527ffaa90c5f041474b24f68735ba7e24e1b8358) clean docs - [`342de39`](https://github.com/jellyfin/jellyfin/commit/342de39d78431503a0429b76e0ba9d3501b746db) Move CorsPolicyProvider to Jellyfin.Server.Configuration ### 📊 Changes **5 files changed** (+61 additions, -37 deletions) <details> <summary>View changed files</summary> ➕ `Jellyfin.Server/Configuration/CorsPolicyProvider.cs` (+49 -0) 📝 `Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs` (+5 -5) ➖ `Jellyfin.Server/Models/ServerCorsPolicy.cs` (+0 -30) 📝 `Jellyfin.Server/Startup.cs` (+1 -2) 📝 `MediaBrowser.Model/Configuration/ServerConfiguration.cs` (+6 -0) </details> ### 📄 Description Allow for configuring CORS origins. ~If no origin is set- use origin from request.~ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 06:09:03 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9817