Fix OAuth approval redirect and generalize client copy

This commit is contained in:
root
2026-08-21 09:27:00 +00:00
parent 080030c764
commit c1fdde0d9f
2 changed files with 8 additions and 5 deletions
+3 -1
View File
@@ -190,7 +190,9 @@ describe("OAuth 2.1 MCP authorization", () => {
redirect: "manual",
});
expect(loginPage.status).toBe(200);
expect(loginPage.headers.get("content-security-policy")).toContain("form-action 'self'");
expect(loginPage.headers.get("content-security-policy")).toContain(
"form-action 'self' https://chatgpt.com",
);
expect(await loginPage.text()).toContain("MCP 인증키");
const rejectedLogin = await fetch(`${baseUrl}/authorize`, {