Skip to content

Gatsby v3 + Apollo Client + Gatsby Cloud - ominous "unsafe method" warning. #31753

Answered by ardiewen
ardiewen asked this question in Help
Discussion options

You must be logged in to vote

Marking this as answered as this as it appears to be an issue with the particular fetch library being used.

  • isomorphic-fetch DOESN'T have this issue while cross-fetch AND isomorphic-unfetch do

  • isomorphic-fetch is implemented as a polyfill, while the others are implemented as ponyfill, so i tested the other two libraries as polyfills but unfortunately they still throw the same warning...

  • isomorphic-fetch throws other errors / warnings, such as Node.js - realFetch.call is not a function matthew-andrews/isomorphic-fetch#194 , which is why we switched to cross-fetch in the first place.

TL;DR: use isomorphic-fetch

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@KyleAMathews
Comment options

@ardiewen
Comment options

@ardiewen
Comment options

@ardiewen
Comment options

@graysonhicks
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ardiewen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants