feat: 로그인 요청 시 referer 헤더 추가
This commit is contained in:
parent
1a6968abd1
commit
432d110f99
@ -9,18 +9,14 @@ import { tracking } from '@/libs/tracking'
|
||||
export async function POST(request: Request) {
|
||||
const { loginId, pwd } = await request.json()
|
||||
|
||||
const result = await axiosInstance(`${process.env.NEXT_PUBLIC_QSP_API_URL}`).post(
|
||||
`/api/user/login`,
|
||||
{
|
||||
loginId,
|
||||
pwd,
|
||||
},
|
||||
{
|
||||
headers: {
|
||||
referer: process.env.NEXT_PUBLIC_QSP_API_REFERER,
|
||||
},
|
||||
},
|
||||
)
|
||||
const headers: Record<string, string> = {
|
||||
referer: process.env.NEXT_PUBLIC_QSP_API_REFERER || '',
|
||||
}
|
||||
|
||||
const result = await axiosInstance(`${process.env.NEXT_PUBLIC_QSP_API_URL}`, headers).post(`/api/user/login`, {
|
||||
loginId,
|
||||
pwd,
|
||||
})
|
||||
console.log('🚀 ~ result ~ result:', result.data)
|
||||
|
||||
let finalResult = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user