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:
Scott Dupree
2020-08-17 14:00:39 -04:00
committed by GitHub
parent cff487ff58
commit 7a5c5ed600
10 changed files with 6 additions and 6174 deletions

View File

@@ -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

View File

@@ -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?;