TypeError returned by fetch API in Chrome iOS 58

I am trying to use fetch to create an HTTP request. It works great except for one iPhone (iOS v10.3.1) and only in Chrome (v58.0.3029.83).

Initially, when we first saw this problem, it was because we had header values ​​that were undefined. I have since filtered these headers, so the only header in the request is:

Content-Type: application/json

The response we receive does not contain headers and no body TypeError: Type error

. It doesn't actually make the request as it doesn't reach the server.

I don't know what to do next. Difficult to debug when I don't have access to any devtools for it.

+3


source to share


1 answer


For people seeing this now, I was able to fix the problem by adding a legally signed certificate to https. Before I used https with self signed certificates because it was a staging environment and I didn't care that it was legal



+1


source







All Articles