The value of the ‘Access-Control-Allow-Origin’ header in the response must not be the wildcard ‘*’ when the request’s credentials mode is ‘include’. Origin ‘http://localhost:8100’ is therefore not allowed access. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute
Hey dude , you can download this https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi extension. And enable cross origin share. This problem is solved.
thanks @halilarici , but it’s not working still gives the same error .
i am using ionic v1
wow , really interesting. If you use the php web service , you can try this<?php header("Access-Control-Allow-Origin: *"); ?>
I am not using php service , i’m using angular
$http request for fetching the json form
I understand you. Rest api no PHP ? Allow control origin * problem is solved.
I already tried
'Allow control origin' : '*' and
'mode' : 'no-cors' still not working