Remove non-working example. Postman-echo does not return CORS headers. After a quick search I did not find a test echo server which returned CORS headers. (#1002)
I have rolled an example header into the other WASM example
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
## Example usage of Reqwest from WASM
|
||||
|
||||
You can build the example locally with:
|
||||
Install wasm-pack with
|
||||
|
||||
npm install
|
||||
|
||||
Then you can build the example locally with:
|
||||
|
||||
|
||||
npm run serve
|
||||
|
||||
@@ -36,6 +36,7 @@ pub struct Signature {
|
||||
pub async fn run() -> Result<JsValue, JsValue> {
|
||||
let res = reqwest::Client::new()
|
||||
.get("https://api.github.com/repos/rustwasm/wasm-bindgen/branches/master")
|
||||
.header("Accept", "application/vnd.github.v3+json")
|
||||
.send()
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user