feat: 로그인 요청 시 referer 추가
This commit is contained in:
parent
798cd3b6d4
commit
597f67303e
@ -18,6 +18,8 @@ NEXT_PUBLIC_QSP_API_URL=http://121.168.9.37:8080
|
|||||||
# NEXT_PUBLIC_QSP_API_URL=http://localhost:8110
|
# NEXT_PUBLIC_QSP_API_URL=http://localhost:8110
|
||||||
# NEXT_PUBLIC_QSP_API_URL=http://dev.hanasysfield.jp
|
# NEXT_PUBLIC_QSP_API_URL=http://dev.hanasysfield.jp
|
||||||
# NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com
|
# NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com
|
||||||
|
#qsp 로그인 api header
|
||||||
|
NEXT_PUBLIC_QSP_API_REFERER=hanasysfield.jp
|
||||||
|
|
||||||
#1:1문의 api
|
#1:1문의 api
|
||||||
NEXT_PUBLIC_INQUIRY_API_URL=https://jp-dev.qsalesplatform.com
|
NEXT_PUBLIC_INQUIRY_API_URL=https://jp-dev.qsalesplatform.com
|
||||||
|
|||||||
@ -15,6 +15,8 @@ NEXT_PUBLIC_API_URL=http://localhost:3000
|
|||||||
#qsp 로그인 api
|
#qsp 로그인 api
|
||||||
NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120
|
NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120
|
||||||
# NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com
|
# NEXT_PUBLIC_QSP_API_URL=https://jp-dev.qsalesplatform.com
|
||||||
|
#qsp 로그인 api header
|
||||||
|
NEXT_PUBLIC_QSP_API_REFERER=hanasysfield.jp
|
||||||
|
|
||||||
#1:1문의 api
|
#1:1문의 api
|
||||||
# NEXT_PUBLIC_INQUIRY_API_URL=https://jp-dev.qsalesplatform.com
|
# NEXT_PUBLIC_INQUIRY_API_URL=https://jp-dev.qsalesplatform.com
|
||||||
|
|||||||
@ -14,6 +14,8 @@ NEXT_PUBLIC_API_URL=https://hanasysfield.jp
|
|||||||
#qsp 로그인 api
|
#qsp 로그인 api
|
||||||
# NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120
|
# NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120
|
||||||
NEXT_PUBLIC_QSP_API_URL=https://jp.qsalesplatform.com
|
NEXT_PUBLIC_QSP_API_URL=https://jp.qsalesplatform.com
|
||||||
|
#qsp 로그인 api header
|
||||||
|
NEXT_PUBLIC_QSP_API_REFERER=hanasysfield.jp
|
||||||
|
|
||||||
#1:1문의 api
|
#1:1문의 api
|
||||||
NEXT_PUBLIC_INQUIRY_API_URL=https://jp.qsalesplatform.com
|
NEXT_PUBLIC_INQUIRY_API_URL=https://jp.qsalesplatform.com
|
||||||
|
|||||||
@ -9,10 +9,18 @@ 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(`/api/user/login`, {
|
const result = await axiosInstance(`${process.env.NEXT_PUBLIC_QSP_API_URL}`).post(
|
||||||
loginId,
|
`/api/user/login`,
|
||||||
pwd,
|
{
|
||||||
})
|
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 = {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user