I had used ionic image loader plugin, Link: https://www.npmjs.com/package/ionic-image-loader
When I try to load an image using "img-loader" as below
<img-loader src="https://path.to/my/image.jpg" useImg></img-loader>
It gives CORS issue for accessing an image path.
Displaying the following issue!
Failed to load https://path.to/my/image.jpg: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.
while whole other images in normal "img" tags works and loads fine.
Even Apis works fine from localhost origin because 'Access-Control-Allow-Origin' is set to '*' on the server end.
But at the time of using ionic image loader, image URL doesn't pass access control check in its preflight request.