feat: 로그인 요청 시 referer 헤더 추가

This commit is contained in:
Daseul Kim 2025-07-02 18:11:05 +09:00
parent 1a6968abd1
commit 432d110f99

View File

@ -9,18 +9,14 @@ import { tracking } from '@/libs/tracking'
export async function POST(request: Request) { export async function POST(request: Request) {
const { loginId, pwd } = await request.json() const { loginId, pwd } = await request.json()
const result = await axiosInstance(`${process.env.NEXT_PUBLIC_QSP_API_URL}`).post( const headers: Record<string, string> = {
`/api/user/login`, referer: process.env.NEXT_PUBLIC_QSP_API_REFERER || '',
{ }
loginId,
pwd, const result = await axiosInstance(`${process.env.NEXT_PUBLIC_QSP_API_URL}`, headers).post(`/api/user/login`, {
}, loginId,
{ pwd,
headers: { })
referer: process.env.NEXT_PUBLIC_QSP_API_REFERER,
},
},
)
console.log('🚀 ~ result ~ result:', result.data) console.log('🚀 ~ result ~ result:', result.data)
let finalResult = {} let finalResult = {}