Skip to content

Commit

Permalink
fix: image upload
Browse files Browse the repository at this point in the history
  • Loading branch information
weaigc committed Sep 1, 2023
1 parent 5ca34f6 commit 6a47d04
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/api/blob.jpg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
const { headers, body } = await fetch(`${API_DOMAIN}/images/blob?bcid=${bcid}`,
{
method: 'GET',
headers: createHeaders(req.cookies, 'image'),
headers: {
...createHeaders(req.cookies, 'image'),
Referer: 'https://www.bing.com/search?q=Bing+AI&showconv=1',
'Sec-Fetch-Dest': 'iframe',
},
},
)

Expand Down

0 comments on commit 6a47d04

Please sign in to comment.