I have issue with CORS policy. I am creating angular app and doing something wrong.
I am running Angular app on localhost:4200 and my api is running at XAMPP localhost. I want to load PDF from backend through url. I am using ' apiUrl + "navod/TS02-307_UM.pdf" ', where apiUrl is environment variable: apiUrl: 'http://localhost/'.
While I want to load PDF, I have issue with CORS policy. If I change url to: https://vadimdez.github.io/ng2-pdf-viewer/assets/pdf-test.pdf. Everything working perfectly.
Where should be my mistake? :)