Files
2024-11-28 17:21:00 +09:00

17 lines
438 B
TypeScript

import { NextResponse } from "next/server";
export async function POST(request: Request) {
const report = await request.json();
// Log the report or send to your logging service
// console.log("CSP Violation:", report);
// You could send this to your logging service
// await fetch('your-logging-service', {
// method: 'POST',
// body: JSON.stringify(report)
// })
return NextResponse.json({ success: true });
}