mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-15 07:17:00 +10:00
feat(security): harden auth, oauth, and printer endpoints
Add stricter URL and redirect validation, endpoint rate limiting, safer defaults for printer and compose config, and CSP protections across server and API surfaces. Made-with: Cursor
This commit is contained in:
@@ -29,7 +29,7 @@ export const pictureSchema = z.object({
|
||||
url: z
|
||||
.string()
|
||||
.describe(
|
||||
"The URL to the picture to display on the resume. Must be a valid URL with a protocol (http:// or https://).",
|
||||
"The URL to the picture to display on the resume. Prefer local app-served paths (for example /uploads/...) populated via upload.",
|
||||
),
|
||||
size: z
|
||||
.number()
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { ResumeData } from "./data";
|
||||
export const sampleResumeData: ResumeData = {
|
||||
picture: {
|
||||
hidden: false,
|
||||
url: "https://i.imgur.com/o4Jpt1p.jpeg",
|
||||
url: "",
|
||||
size: 100,
|
||||
rotation: 0,
|
||||
aspectRatio: 1,
|
||||
|
||||
Reference in New Issue
Block a user