增加自定义X-Emby-Authorization

This commit is contained in:
mtvpls
2026-06-24 11:58:21 +08:00
parent 6362c8f251
commit 5625dd204c
6 changed files with 41 additions and 2 deletions
+2 -1
View File
@@ -27,7 +27,7 @@ export async function POST(request: NextRequest) {
try {
const body = await request.json();
const { action, ServerURL, ApiKey, Username, Password } = body;
const { action, ServerURL, ApiKey, Username, Password, embyAuthorizationHeader } = body;
const authInfo = getAuthInfoFromCookie(request);
if (!authInfo || !authInfo.username) {
@@ -64,6 +64,7 @@ export async function POST(request: NextRequest) {
ApiKey,
Username,
Password,
embyAuthorizationHeader,
};
const client = new EmbyClient(testConfig);