Ionic 3 net :: err_connection_refused


#1

while running app by ionic serve…Enabled cors…eventhough got error in connection…


#2

allow cors at backend services.

like in php backend

header('Access-Control-Allow-Origin: *'); 
header('Access-Control-Allow-Credentials: true');
header('Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS');
header('Access-Control-Max-Age: 1000');
header('Access-Control-Allow-Headers: Origin, Content-Type');