add user-agent header to sso calls
This commit is contained in:
@@ -24,6 +24,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
`${EVE_SSO_CLIENT_ID}:${EVE_SSO_SECRET}`
|
||||
).toString("base64")}`,
|
||||
Host: "login.eveonline.com",
|
||||
"User-Agent": "https://github.com/calli-eve/eve-pi",
|
||||
};
|
||||
|
||||
try {
|
||||
|
@@ -23,6 +23,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
`${EVE_SSO_CLIENT_ID}:${EVE_SSO_SECRET}`
|
||||
).toString("base64")}`,
|
||||
Host: "login.eveonline.com",
|
||||
"User-Agent": "https://github.com/calli-eve/eve-pi",
|
||||
};
|
||||
|
||||
try {
|
||||
|
@@ -23,6 +23,7 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
`${EVE_SSO_CLIENT_ID}:${EVE_SSO_SECRET}`
|
||||
).toString("base64")}`,
|
||||
Host: "login.eveonline.com",
|
||||
"User-Agent": "https://github.com/calli-eve/eve-pi",
|
||||
};
|
||||
|
||||
const response = await fetch(EVE_SSO_TOKEN_URL, {
|
||||
|
Reference in New Issue
Block a user