rustwasm / wasm-bindgen

Facilitating high-level interactions between Wasm modules and JavaScript
https://rustwasm.github.io/docs/wasm-bindgen/
Apache License 2.0
7.83k stars 1.08k forks source link

web_sys Response is opaque. #4286

Open greenpdx opened 8 hours ago

greenpdx commented 8 hours ago

Summary

I copied the web_sys fetch example and only changed the URL and the Accept to "application/json" and console::log_1() statements I am running the WASM inside a VueJS application in a Firefox. I see the json data in the network debugger.

right after the "let resp_value = ....." the result is an opaque response.

Why is this and how do I fix it?