Skip to content

Commit f324650

Browse files
authored
Add requestId to request config (#36)
1 parent ac54d24 commit f324650

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/utils/axios-client.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ export function createAxiosClient({
123123
if (typeof window !== "undefined") {
124124
config.headers.set("X-Origin-URL", window.location.href);
125125
}
126-
126+
const requestId = uuidv4();
127+
(config as any).requestId = requestId;
127128
if (isInIFrame) {
128-
const requestId = uuidv4();
129129
try {
130130
window.parent.postMessage(
131131
{

0 commit comments

Comments
 (0)