Runtime Error Uncaught (in promise): Response with status: 0 for URL: null


#1

Runtime Error
Uncaught (in promise): Response with status: 0 for URL: null
this Home.ts


this Service.ts

Here Console

XMLHttpRequest cannot load http://www.expodatabase.de/api/1/messen/show.php?json=1&city=paris&token=df9c447drg67zHujLiopq7774dh567sIjkzT. No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8100’ is therefore not allowed access.

Thank you for the help


#2

Error message is pretty clear, isn’t it? Your backend has to answer with an Access-Control-Allow-Origin header.