plebbit / plebbit-react

A GUI for plebbit
https://plebbitapp.eth.limo
GNU General Public License v2.0
35 stars 6 forks source link

CORS errors in firefox, links broken (not sure if related to each other) #319

Open iopq opened 1 year ago

iopq commented 1 year ago

https://plebbitapp.eth.limo/#/p/censorship-watch.eth/c/QmRM5rR6DqBVYyUAVbiQuhA5CyCZ3t7AcXBiYXVc39Z4sK

I get

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cloudflare-ipfs.com/ipns/QmZzygBCEwcuGx4m35wfX5XXeYTo8aYyZY9MgEf7bgQ5Et. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 500.

XHRGET
https://cloudflare-ipfs.com/ipns/12D3KooWSuZdyXeZm2J6iFyTG3uRHXN9j9hk1omBGY5tkJN1mf76
CORS Missing Allow Origin

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cloudflare-ipfs.com/ipns/12D3KooWSuZdyXeZm2J6iFyTG3uRHXN9j9hk1omBGY5tkJN1mf76. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 524.

furthermore, the link has an empty src so I can't click it, making the whole platform (which is a link aggregator) absolutely pointless

estebanabaroa commented 1 year ago

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://cloudflare-ipfs.com/ipns/QmZzygBCEwcuGx4m35wfX5XXeYTo8aYyZY9MgEf7bgQ5Et. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 500.

404 requests from cloudflare-ipfs.com don't have the cors headers so that's why. it is normal. we fetch the data from multiple ipfs providers and its expected that some of them will 404.

furthermore, the link has an empty src so I can't click it, making the whole platform (which is a link aggregator) absolutely pointless

@Abydin that's true, on mobile only the link has src, the card does not. Is this how it is on reddit mobile? If on reddit mobile the card has a link we should add it as well.

iopq commented 1 year ago

https://plebbitapp.eth.limo/#/p/politically-incorrect.eth/c/QmNygrM3vqSLg7Y8vHo5twBM4hQ7MD1YtSB88VaasNWBWz

there's no way for me to follow this link in firefox desktop, it just doesn't have a src and it's shortened so I can't copy paste

Abydin commented 1 year ago

i will fix that as soon as possible