added cors mode to /metrics-flow request

This commit is contained in:
Danny Coates 2019-03-05 13:31:51 -08:00
parent 445811931f
commit e7b881e975
No known key found for this signature in database
GPG Key ID: 4C442633C62E00CB
1 changed files with 4 additions and 1 deletions

View File

@ -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;