mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #3218] [MERGED] Enable CORS and Authentation #9378
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/3218
Author: @crobibero
Created: 6/1/2020
Status: ✅ Merged
Merged: 6/9/2020
Merged by: @dkanada
Base:
api-migration← Head:api-cors📝 Commits (4)
b944b8fEnable CORS and Authentication.e30a850Remove log spam when using legacy api2476848Fix tests6be8625Merge remote-tracking branch 'upstream/api-migration' into api-cors📊 Changes
7 files changed (+62 additions, -5 deletions)
View changed files
📝
Emby.Server.Implementations/HttpServer/Security/AuthService.cs(+6 -0)📝
Jellyfin.Api/Auth/CustomAuthenticationHandler.cs(+9 -2)📝
Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs(+7 -1)➕
Jellyfin.Server/Models/ServerCorsPolicy.cs(+30 -0)📝
Jellyfin.Server/Startup.cs(+3 -1)📝
MediaBrowser.Controller/Net/AuthenticatedAttribute.cs(+4 -0)📝
tests/Jellyfin.Api.Tests/Auth/CustomAuthenticationHandlerTests.cs(+3 -1)📄 Description
Currently the logfile spams this:Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Access token is required.but authentication doesn't work without the call to
app.UseAuthentication();CORS is currently set to allow any Origin, Method, and Header.
Fixes #3161
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.