mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-17 23:13:51 +01:00
Send cookies for introspection (#204)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import type { HttpRequest, HttpResponse } from '@yaakapp-internal/models';
|
||||
import { getActiveCookieJar } from '../hooks/useActiveCookieJar';
|
||||
import { invokeCmd } from './tauri';
|
||||
|
||||
export async function sendEphemeralRequest(
|
||||
@@ -7,5 +8,9 @@ export async function sendEphemeralRequest(
|
||||
): Promise<HttpResponse> {
|
||||
// Remove some things that we don't want to associate
|
||||
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