Porque ocorre esse erro? Funcionou, mas no console aparece isso:
GET https://aluracar.herokuapp.com/salvarpedido?carro=Azera+V6&preco=87300 500 (Internal Server Error).
XMLHttpRequest cannot load https://aluracar.herokuapp.com/salvarpedido?carro=Azera+V6&preco=87300. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access. The response had HTTP status code 500.