API call - Set Origin in header does not work

Hi guys !

The following API call works OK from my computer:

curl --location --request GET 'https://api.connectcar.cl/vehicles?sort=asc&order=brand&populate=true&limit=24' \
--header 'Origin: https://www.connectcar.cl'

But when calling from FF, it does not work, it gives Origin error: (Although, I have the Origin: https://www.connectcar.cl to the Header in FF)

{
  "error": "Origin \"undefined\"  has been blocked by CORS policy"
}

Any solution for this??

Thank you.

1 reply