UNPKG

@scalar/api-client

Version:

the open source API testing client

16 lines 838 B
/** * Safely extract cookie header keys from response headers. * Modern browsers support getSetCookie() which returns an array of Set-Cookie values. * * Note: Set-Cookie headers are often hidden from JavaScript due to security restrictions. * The browser's network tab may show Set-Cookie headers that are not accessible via the * Fetch API Headers object. This is intentional browser behavior to prevent JavaScript * from accessing HttpOnly cookies and other sensitive cookie data. * * @see https://developer.mozilla.org/en-US/docs/Web/API/Headers/getSetCookie * * @param headers - The response headers object * @returns Array of cookie header keys or empty array if not supported or restricted */ export declare const getCookieHeaderKeys: (headers: Headers) => string[]; //# sourceMappingURL=get-cookie-header-keys.d.ts.map