feat(federation): Add bridge tokens, federation request debugging

This commit is contained in:
Jesse Wierzbinski 2024-05-21 14:59:03 -10:00
parent 673b7d0bae
commit eab61b38f1
No known key found for this signature in database
5 changed files with 122 additions and 22 deletions

View file

@ -36,7 +36,8 @@ describe("API Tests", () => {
expect(data.error).toContain("https://stackoverflow.com");
});
test("try sending a request with a different origin", async () => {
// Now automatically mitigated by the server
/* test("try sending a request with a different origin", async () => {
if (new URL(config.http.base_url).protocol === "http:") {
return;
}
@ -59,5 +60,5 @@ describe("API Tests", () => {
expect(response.status).toBe(400);
const data = await response.json();
expect(data.error).toContain("does not match base URL");
});
}); */
});