Skip to content

Commit

Permalink
Add demo api origins to allowed auth
Browse files Browse the repository at this point in the history
  • Loading branch information
aneelac22 committed Apr 9, 2024
1 parent 1589b70 commit 30e2dd3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/iqeEnablement.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ let xhrResults: XMLHttpRequest[] = [];
let fetchResults: Record<string, unknown> = {};

const DENIED_CROSS_CHECK = 'Access denied from RBAC on cross-access check';
const AUTH_ALLOWED_ORIGINS = [location.origin, /https:\/\/api(?:\.[a-z]+)?\.openshift(?:[a-z]+)?\.com/];
const AUTH_ALLOWED_ORIGINS = [
location.origin,
/https:\/\/api(?:\.[a-z]+)?\.openshift(?:[a-z]+)?\.com/,
/https:\/\/api?\.demo-experience(?:\.[a-z]+)?\.demo?\.redhat?\.com/,
];
const AUTH_EXCLUDED_URLS = [/https:\/\/api(?:\.[a-z]+)?\.openshift(?:[a-z]+)?\.com\/api\/upgrades_info/];

const isExcluded = (target: string) => {
Expand Down

0 comments on commit 30e2dd3

Please sign in to comment.