yewstack / yew

Rust / Wasm framework for creating reliable and efficient web applications
https://yew.rs
Apache License 2.0
30.61k stars 1.42k forks source link

Tutorial error about fetching data #3663

Open ssrlive opened 4 months ago

ssrlive commented 4 months ago

This is about:

https://yew.rs/zh-Hans/docs/tutorial#fetching-data-using-external-rest-api

When I follow the tutorial to pull data, it always fails. After I put the data locally and modify the port, it sometimes succeeds, but most of the time it fails. Please correct this error.

image

BartMassey commented 4 months ago

The problem I had here, for Firefox at least, is that once the client gets a CORS error Firefox won't allow the request to be retried once the proxy server is up. Even shift-reload doesn't seem to reset things. Easy workaround is to just connect again in a new tab.