mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
feat(federation): ✨ Add bridge tokens, federation request debugging
This commit is contained in:
parent
673b7d0bae
commit
eab61b38f1
5 changed files with 122 additions and 22 deletions
|
|
@ -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");
|
||||
});
|
||||
}); */
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue