로그인 로그에 IP 남기기

This commit is contained in:
2026-12-03 18:56:58 +09:00
parent a5ece25b6c
commit f729c32088
18 changed files with 124 additions and 10 deletions
+3
View File
@@ -9,6 +9,7 @@ import {
} from "@/src/shared/config";
import { cookies } from "next/headers";
import { NextResponse } from "next/server";
import { clientIpHeaders } from "../../../../client-ip";
async function handler(
request: Request,
@@ -19,6 +20,8 @@ async function handler(
const headers: Record<string, string> = {
"Content-Type": "application/json",
"X-Site-Id": SITE_ID,
// 브라우저 IP (로그인/접속 로그용)
...clientIpHeaders(request),
};
const deviceId = request.headers.get("X-Device-Id");
if (deviceId) {