Add registry url to Timeout whitelist

deprecated-master
parent a5de5eb83e
commit 9d40a969c5

@ -95,9 +95,9 @@ export class RoleVerificationComponent implements OnInit, OnDestroy, AfterViewIn
public verification: any;
public code: FormControl;
private subs: any[] = [];
@ViewChild('managerModal', { static: false }) managerModal: AlertModal;
@ViewChild('memberModal', { static: false }) memberModal: AlertModal;
@ViewChild('errorModal', { static: false }) errorModal: AlertModal;
@ViewChild('managerModal') managerModal: AlertModal;
@ViewChild('memberModal') memberModal: AlertModal;
@ViewChild('errorModal') errorModal: AlertModal;
public error: string = null;
public loading: boolean = false;
public isMember: boolean = false;

@ -10,7 +10,7 @@ export const DEFAULT_TIMEOUT = new InjectionToken<number>('defaultTimeout');
@Injectable()
export class TimeoutInterceptor implements HttpInterceptor {
private static TIMEOUT_WHITELIST = [properties.csvAPIURL];
private static TIMEOUT_WHITELIST = [properties.csvAPIURL, properties.registryUrl];
constructor(@Inject(DEFAULT_TIMEOUT) protected defaultTimeout: number, @Inject(PLATFORM_ID) private platformId: any) {
}
@ -26,7 +26,7 @@ export class TimeoutInterceptor implements HttpInterceptor {
}
isService(req: HttpRequest<any>, service: string | string[]):boolean {
if(isArray(service)) {
if(Array.isArray(service)) {
return !!service.find(element => req.url.indexOf(element) !== -1);
} else {
return req.url.indexOf(service) !== -1;

Loading…
Cancel
Save