logoalt Hacker News

simonwtoday at 5:17 PM1 replyview on HN

A neat thing about GitHub is that every file on it can be accessed from URLs like https://raw.githubusercontent.com/simonw/llm-prices/refs/hea... which are served through a CDN with open CORS headers - which means any JavaScript application running anywhere can access them.

Demo: https://tools.simonwillison.net/cors-fetch?url=https%3A%2F%2...


Replies

avhon1today at 9:29 PM

That feature seems common to other git hosts / forges. For example, here's one of Dillo's files, from a few commits ago, from their cgit-based host

https://git.dillo-browser.org/dillo/plain/src/ui.cc?id=29a46...