btw, no idea why mine is orange when https://n.mleku.dev/.well-known/nostr.json is working
Discussion
Looks like its missing the CORS headers https://cors-test.codehappy.dev/?url=https%3A%2F%2Fn.mleku.dev%2F.well-known%2Fnostr.json&origin=https%3A%2F%2Fcors-test.codehappy.dev%2F&method=get
Since noStrudel run in the browser its limited by cross origin and browser security stuff
ah, thanks, this is a fix i can make in my reverse proxy
the headers it reports say they are coming from cloudflare
i don't use cloudflare, is there something i'm missing here?
it looks like the headers are being mangled because this is what should be coming through:
modifyCORSResponse := func(res *http.Response) error {
res.Header.Set("Access-Control-Allow-Methods", "GET,HEAD,PUT,PATCH,POST,DELETE")
res.Header.Set("Access-Control-Allow-Credentials", "true")
res.Header.Set("Access-Control-Allow-Origin", "*")
return nil
}
rp.ModifyResponse = modifyCORSResponse
but this page shows
accept-ranges: bytes
cf-cache-status: DYNAMIC
cf-ray: 874eeb29c400531c-LHR
connection: keep-alive
content-length: 274
content-type: application/json
date: Mon, 15 Apr 2024 21:09:47 GMT
last-modified: Tue, 27 Feb 2024 08:16:21 GMT
server: cloudflare
wat cloudflare???