cURL
curl --request OPTIONS \ --url https://api.ionelectricity.com/v1/{proxy+} \ --header 'Authorization: <api-key>'
Enables CORS by returning correct headers for pre-flight requests.
The sub-path for specific data models and device IDs, e.g., 'han', 'han/HB0375D3', or 'consumption'.
Default response for CORS method
Was this page helpful?