Skip to content

Commit

Permalink
Merge pull request #1613 from solliancenet/cj-fix-loadtest-ui-081
Browse files Browse the repository at this point in the history
(0.8.1) Fix issues in load testing UI
  • Loading branch information
kylebunting authored Aug 23, 2024
2 parents 2c32c6b + 21b472b commit 7cd1cee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/dotnet/Common/Services/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public static void AddCorsPolicies(this IHostApplicationBuilder builder) =>
{
policy.AllowAnyOrigin();
policy.WithHeaders("DNT", "Keep-Alive", "User-Agent", "X-Requested-With", "If-Modified-Since",
"Cache-Control", "Content-Type", "Range", "Authorization", "X-User-Identity");
"Cache-Control", "Content-Type", "Range", "Authorization", "X-User-Identity",
"Access-Control-Request-Headers");
policy.AllowAnyMethod();
});
});
Expand Down
6 changes: 3 additions & 3 deletions src/ui/UserPortal/js/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ export default {
}
if (this.virtualUser && this.isValidEmail(this.virtualUser)) {
options.headers['X-USER-IDENTITY'] = JSON.stringify({
name: '[email protected]',
user_name: '[email protected]',
name: this.virtualUser,
user_name: this.virtualUser,
upn: this.virtualUser,
user_id: '00000000-0000-0000-0001-000000000001',
group_ids: ['00000000-0000-0000-0001-000000000001'],
group_ids: ['00000000-0000-0000-0000-000000000001'],
});
}

Expand Down

0 comments on commit 7cd1cee

Please sign in to comment.