Currently, in my Angular 5 application with a Web API back-end, my main goal is to reference a CSS file on a production server.
I'm facing a cross-origin issue when trying to access the CSS file hosted on the IIS server website. Even though CORS is enabled on the web API, it seems to be only affecting the CSS file itself.
When trying to access the Font at '' from origin 'http://localhost:4200', the request is blocked by the CORS policy due to the absence of an 'Access-Control-Allow-Origin' header on the requested resource.
I've tried using CORS in my Angular application, but this issue doesn't seem related to the web API or Node.js since it's simply a matter of accessing a CSS file.
To sum up, this issue revolves around referencing a CSS file on a specific server regardless of any other components involved.