How Smart cards work in Homer
mainSmart cards are specialized service integrations that display real-time data and extra features beyond a standard service link. To enable a Smart card, you must add a type key to the service item in your config.yml file.
Security Warning
Your config.yml is exposed at /assets/config.yml via HTTP. Do not include sensitive API keys directly in the file unless your Homer instance is protected by authentication or you use a proxy like CORSair to inject credentials via server-side environment variables.
CORS Requirements
Smart cards that fetch data from external services are subject to CORS restrictions. To make them work, you must ensure one of the following:
- All services are hosted on the same domain as Homer.
- The external services are configured to accept cross-site requests (CORS headers).
- You use a proxy to inject the necessary CORS headers.