If you use php on server then write header(‘Access-Control-Allow-Origin: *’); in your controller and its done