Oddbean new post about | logout
 Nostrudel has it right now, ideally harass your client dev to add support 🤠 
 Looking at you nostr:nprofile1qqsyvrp9u6p0mfur9dfdru3d853tx9mdjuhkphxuxgfwmryja7zsvhqppemhxue69uhkummn9ekx7mp0qythwumn8ghj7anfw3hhytnwdaehgu339e3k7mf0qyghwumn8ghj7mn0wd68ytnhd9hx2tch2deau... 👀 
 It's coming. I just have to change the architecture of our feeds  
 do i just add my relay url there as the blossom server url? i.e. https://nostr-relay.derekross.me because im getting errors when trying to upload via nostrudel. 
 Probably cors 
 Khatru should be handling the CORS but no one ever knows how to do that and I forgot to test so please send a patch. 
 I host with cloudflare so needed to do it there, it would ignore khatru anyway 😅 
 I will look tomorrow  
 so i shouldn't be adding cors headers to my nginx config?

either way i added them and it still errors for me.

        add_header 'Access-Control-Allow-Origin' '*';
        add_header 'Access-Control-Expose-Headers' '*';
        add_header 'Access-Control-Allow-Headers' 'Authorization,*';
        add_header 'Access-Control-Allow-Methods' 'GET, PUT, DELETE';

Nostrudle says: 

Cannot read properties of undefined (reading 'url')

when I try to upload an image.
 
 Pls Open up web dev tools in browser, open network console and network tab, let me see raw errors, ty sir we'll fix it

Also double check you set the new blossom_path .env per the example .env 
 i fixed it. i removed the upstream server's headers.

        proxy_hide_header Access-Control-Allow-Origin; 
 Best cors testing site I've found https://cors-test.codehappy.dev/ 
 relayer already handles it iirc, just copypasta

it's in the router/mux thingy 
 servermux