mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-23 09:08:32 +02:00
Send cookies for introspection (#204)
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import type { HttpRequest, HttpResponse } from '@yaakapp-internal/models';
|
import type { HttpRequest, HttpResponse } from '@yaakapp-internal/models';
|
||||||
|
import { getActiveCookieJar } from '../hooks/useActiveCookieJar';
|
||||||
import { invokeCmd } from './tauri';
|
import { invokeCmd } from './tauri';
|
||||||
|
|
||||||
export async function sendEphemeralRequest(
|
export async function sendEphemeralRequest(
|
||||||
@@ -7,5 +8,9 @@ export async function sendEphemeralRequest(
|
|||||||
): Promise<HttpResponse> {
|
): Promise<HttpResponse> {
|
||||||
// Remove some things that we don't want to associate
|
// Remove some things that we don't want to associate
|
||||||
const newRequest = { ...request };
|
const newRequest = { ...request };
|
||||||
return invokeCmd('cmd_send_ephemeral_request', { request: newRequest, environmentId });
|
return invokeCmd('cmd_send_ephemeral_request', {
|
||||||
|
request: newRequest,
|
||||||
|
environmentId,
|
||||||
|
cookieJarId: getActiveCookieJar()?.id,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user