matrix-public-archive/server/routes
Michael[tm] Smith 2999691eea
Enable CORS support (#147)
This change enables CORS support in the archive — to allow web developers to create web applications with frontend JavaScript code that can fetch pages from the archive (for example, for scraping content from chat logs).

Otherwise, without this change, web developers can’t create web apps with frontend JavaScript that can fetch chat logs from the archive and then consume the content of the logs.

It’s imaginable that web developers may find use cases for consuming the chat logs in the archive from frontend JavaScript code — at the simplest level, web apps that fetch and scrape logs to get data out of them or to pull out particular snippets from the logs.

Developers can anyway already scrape the contents of the archive — by using server-side programming languages or by using `curl` or whatever from the command line. They just can’t do the same from frontend JavaScript code, unless CORS support is enabled.
2022-11-28 21:47:57 -06:00
..
client-side-room-alias-hash-redirect-route.js Add support for client-side room alias hash `#` redirects to the correct URL (#111) 2022-10-28 00:32:24 -05:00
content-security-policy-middleware.js Add `Content-Security-Policy` (CSP) (#81) 2022-10-19 12:07:39 -05:00
install-routes.js Enable CORS support (#147) 2022-11-28 21:47:57 -06:00
prevent-clickjacking-middleware.js Add clickjacking prevention middleware (#68) 2022-09-08 19:30:20 -05:00
redirect-to-correct-archive-url-if-bad-sigil-middleware.js Add support for room aliases (#107) 2022-10-27 01:09:13 -05:00
room-directory-routes.js Increase perceived performance by scrolling to the right spot before Hydrogen loads (#128) 2022-11-09 18:57:33 -06:00
room-routes.js Increase perceived performance by scrolling to the right spot before Hydrogen loads (#128) 2022-11-09 18:57:33 -06:00
timeout-middleware.js Add `Content-Security-Policy` (CSP) (#81) 2022-10-19 12:07:39 -05:00