Pass headers for links and pixels.
This commit is contained in:
@@ -29,7 +29,7 @@ export async function GET(request: Request, { params }: { params: Promise<{ slug
|
|||||||
|
|
||||||
const req = new Request(request.url, {
|
const req = new Request(request.url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: request.headers,
|
||||||
body: JSON.stringify(payload),
|
body: JSON.stringify(payload),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ export async function GET(request: Request, { params }: { params: Promise<{ slug
|
|||||||
|
|
||||||
const req = new Request(request.url, {
|
const req = new Request(request.url, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json' },
|
headers: request.headers,
|
||||||
body: JSON.stringify(payload),
|
body: JSON.stringify(payload),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user