Skip to content

Let hoortrend.com and the portfolio show demo-app's facts live (CORS)

Ilyes LITIM requested to merge feat/cors-info into main

hoortrend.com and the portfolio are going to put demo-app forward, with its version, pod, node and uptime read live from /api/info.

  • CORS: /api/info and /healthz send Access-Control-Allow-Origin for https://hoortrend.com and https://portfolio.ilyes-litim.fr only. The list can be changed with ALLOWED_ORIGINS. Both routes also send Vary: Origin.
  • Not shared: the page itself, and any other origin.
  • Test (10 in total now): both origins allowed, an unknown origin refused, / never shared.

🤖 Generated with Claude Code

Merge request reports

Loading