mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-14 01:50:39 +09:00
fix: remove stale port 5173 references from board mutation guard
Update dev origin allowlist and tests to use port 3100 only, matching the unified dev server setup. Fix AGENTS.md and README accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
ff472af343
commit
633885b57a
4 changed files with 3 additions and 7 deletions
|
|
@ -46,7 +46,7 @@ describe("boardMutationGuard", () => {
|
|||
const app = createApp("board");
|
||||
const res = await request(app)
|
||||
.post("/mutate")
|
||||
.set("Origin", "http://localhost:5173")
|
||||
.set("Origin", "http://localhost:3100")
|
||||
.send({ ok: true });
|
||||
expect(res.status).toBe(204);
|
||||
});
|
||||
|
|
@ -55,7 +55,7 @@ describe("boardMutationGuard", () => {
|
|||
const app = createApp("board");
|
||||
const res = await request(app)
|
||||
.post("/mutate")
|
||||
.set("Referer", "http://localhost:5173/issues/abc")
|
||||
.set("Referer", "http://localhost:3100/issues/abc")
|
||||
.send({ ok: true });
|
||||
expect(res.status).toBe(204);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@ import type { Request, RequestHandler } from "express";
|
|||
|
||||
const SAFE_METHODS = new Set(["GET", "HEAD", "OPTIONS"]);
|
||||
const DEFAULT_DEV_ORIGINS = [
|
||||
"http://localhost:5173",
|
||||
"http://127.0.0.1:5173",
|
||||
"http://localhost:3100",
|
||||
"http://127.0.0.1:3100",
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue