a8516055
server: handle CORS in server
Currently CORS is handled in nginx in front of the API. That setup is not very suitable for Kubernetes. Instead, handle CORS here, so we do not need any intermediaries between the ingress and the APIs. The CORS settings are taken from sr.ht-nginx/graphql.conf [1] [1] https://git.sr.ht/~sircmpwn/sr.ht-nginx/tree/master/item/graphql.conf
Conrad Hoffmann <ch@bitfehler.net> — 2025-07-23 11:24:21 UTC
Commit a85160555638899aa0d4c9d4396da630adfa3702 —
view raw patch
Parent(s):
00133fa6
| File | Status | + | − |
|---|---|---|---|
go.mod
|
M | +1 | |
go.sum
|
M | +2 | |
server/server.go
|
M | +8 |