Low-latency AT Protocol interaction indexer.
20

Configure Feed

Select the types of activity you want to include in your feed.

api/server: set up CORS

Aly Raffauf (Jul 3, 2026, 8:35 PM EDT) b0d2452f 4adbdd87

+8 -1
+8 -1
internal/api/server.go
··· 18 18 mux.HandleFunc("GET /xrpc/blue.microcosm.links.getManyToMany", s.GetManyToMany) 19 19 mux.HandleFunc("GET /xrpc/blue.microcosm.links.getManyToManyCounts", s.GetManyToManyCounts) 20 20 21 - return http.ListenAndServe(addr, mux) 21 + return http.ListenAndServe(addr, withCORS(mux)) 22 + } 23 + 24 + func withCORS(next http.Handler) http.Handler { 25 + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 26 + w.Header().Set("Access-Control-Allow-Origin", "*") 27 + next.ServeHTTP(w, r) 28 + }) 22 29 }