0

The following is what I see see pasted elseshere but only shows the promise, want the full response data or the exception.

fetch('http://localhost:8000/data/random?m=2&n=3', {mode: 'no-cors'}).then(res => res.text()).then(console.log)

Promise {<pending>}
mathtick
  • 6,487
  • 13
  • 56
  • 101
  • 1
    Does this answer your question? [Trying to use fetch and pass in mode: no-cors](https://stackoverflow.com/questions/43262121/trying-to-use-fetch-and-pass-in-mode-no-cors) – sideshowbarker Jun 09 '20 at 11:06
  • See the answer at https://stackoverflow.com/a/43268098/441757 – sideshowbarker Jun 09 '20 at 11:07
  • Yeah, basically sounds like you can't do it without changing the settings on the dev server (serving the original client app to the browser) if I understand things? – mathtick Jun 09 '20 at 12:08
  • So I guess the real question is if there is an easy "local console" for chrome. Like a default vanilla page you just open to start messing around in. – mathtick Jun 09 '20 at 12:09

0 Answers0