I am encountering this CORS issue in my spec file in my angular test. Not sure how to fix this. The issue happens in the second line
beforeEach(() => {
fixture = TestBed.createComponent(FhcComponent); //ISSUE HAPPENS HERE
component = fixture.componentInstance;
fixture.detectChanges();
});
Here is the full error I am seeing in console.
Access to XMLHttpRequest at 'ng:///FhcComponent/%C9%B5fac.js' from origin 'http://localhost:9876' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.