mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-07 22:50:53 +03:00
added cors mode to /metrics-flow request
This commit is contained in:
@@ -103,7 +103,10 @@ export default class User {
|
|||||||
utm_campaign: utms.campaign || 'none'
|
utm_campaign: utms.campaign || 'none'
|
||||||
});
|
});
|
||||||
const res = await fetch(
|
const res = await fetch(
|
||||||
`${this.authConfig.issuer}/metrics-flow?${params.toString()}`
|
`${this.authConfig.issuer}/metrics-flow?${params.toString()}`,
|
||||||
|
{
|
||||||
|
mode: 'cors'
|
||||||
|
}
|
||||||
);
|
);
|
||||||
const { flowId, flowBeginTime } = await res.json();
|
const { flowId, flowBeginTime } = await res.json();
|
||||||
this.flowId = flowId;
|
this.flowId = flowId;
|
||||||
|
|||||||
Reference in New Issue
Block a user