get a lot of these errors `Uncaught (in promise) T...
# javascript
c
get a lot of these errors
Uncaught (in promise) TypeError: Failed to execute 'fetch' on 'Window': Invalid referrer policy
g
Looks that you requested some url outside of your web site. To request such URL you need CORS. Also, better to add Promide error handling:
window.fetch(url).then { whatever }.catch { console.error(it) }
c
I thought that might be playing a role. The error messages didn't necessarily lead me on that direction but yeah, I've been held up by cors before. I'll fiddle with it again today and see if I can get it going.
Thanks!
Tested with Firefox so the CORS thing shouldn't be an issue but now the error I get is:
message: "'cache' member of RequestInit 'null' is not a valid value for enumeration RequestCache."
so I guess the defaults for the RequestInit aren't sufficient? I'll keep at this
Made it through the cache problem but then got the same sort of issue with the credentials, then headers, etc
its basically failing on every possible property of the requestinit object