Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

337
Views
ERROR ReferenceError: XMLHttpRequest is not defined in SSR angular 11

I am working on SSR in Angular version 11. When I call cdn json file that time getting run time error ERROR ReferenceError: XMLHttpRequest is not defined and not showing data on SSR.

Please help what can I do

abc.component.ts

import { HttpClient } from '@angular/common/http';
import { Component, EventEmitter, Inject, Input, LOCALE_ID, OnInit, Output, PLATFORM_ID } from '@angular/core';
cardInfo: any;

 constructor(
    private http: HttpClient,
    @Inject(LOCALE_ID) public languageId: string,
    @Inject(PLATFORM_ID) private platformId,
  ) {}

 ngOnInit(): void {
    this.getJsonData().subscribe((res) => {
      this.cardInfo = res;
    });
  }
  getJsonData() {
    return this.http.get(
      `https://cdn.researcher.life/rlife/json/advisory-board-members/advisory-board-members-${this.languageId}-v4.json`,
    );
  }
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!