دعم الموقع

Hi, I made this web app with react and when I call the APIs from chrome on desktop they work perfectly fine. When I open the web app on chrome android all API requests fail with the following error: TypeError: Failed to fetch. Now I know that there are differences between development and production or local and remote but I don't think these differences extend to simple http calls. Do you think it might have something to do with CORS?

6 ردود (على هذه الصفحة 1 من 1)

Jump to last post

@stivengjinaj said:
APIs not working on mobile (android)
Hi, I made this web app with react and when I call the APIs from chrome on desktop they work perfectly fine.
When I open the web app on chrome android all API requests fail with the following error:
TypeError: Failed to fetch.
Now I know that there are differences between development and production or local and remote
but I don't think these differences extend to simple http calls.
Do you think it might have something to do with CORS?

I am not a code developer.
I don't know if it's a CORS issue.
But if it is, I can just point out others with similar issues.

CORS Issues
See if this research can help.
https://www.themoviedb.org/talk/search?advanced_search=&query=CORS&with_category=&with_status%5B%5D=closed&with_status%5B%5D=open
In some of the topics the problem was solved.
https://www.themoviedb.org/talk/5f55e3dd713ed40037f090d4
https://www.themoviedb.org/talk/5833110992514162cf03b7bd
https://www.themoviedb.org/talk/5c5dff05925141338cbce2db
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials

And this
https://www.themoviedb.org/talk/5f621eae93388b003864513c
https://www.themoviedb.org/talk/5eb07271a13533001b72740a

If you are unable to resolve with this information, I suggest that you post a new topic with Issue CORS in the title, or something like that.
This makes it easier to get help from Travis Bell, the administrator, who has the necessary knowledge and power to solve the problem.

Seems like the problem is not CORS, rather than DNS I guess. When I use VPN everything works. Anyways it's annoying.

@stivengjinaj said:
Seems like the problem is not CORS, rather than DNS I guess.
When I use VPN everything works.
Anyways it's annoying.

In some countries there are problems with Cloudflare DNS service. 1.1.1.1
I don't know which country you are in.
Try changing to Google's. 8.8.8.8
Or any other.

Setting dns to 8.8.8.8 works but I can't make a web app that doesn't work if users don't have the dns set to 8.8.8.8

@stivengjinaj said:
Setting dns to 8.8.8.8 works
but I can't make a web app that doesn't work if users don't have the dns set to 8.8.8.8

I'm sorry but I don't know how to help.
Does the problem occur everywhere in the city?
Does it occur with all ISP, Internet Service Providers?
If possible, can you tell me which country you are in?

Albania. I'll try to send the requests from a proxy server, maybe it works

لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها

عام

s ركز شريط البحث
p افتح قائمة الملف الشخصي
esc اغلق النافذة المفتوحة
? افتح نافذة اختصارات لوحة المفاتيح

على كافة صفحات الوسائط

b ارجع للخلف (او للصفحة الام عند التطبيق)
e انتقل لصفحة التعديل

على كافة صفحات موسم المسلسل

(السهم الايمن) انتقل للموسم التالي
(السهم الايسر) انتقل للموسم السابق

على كافة صفحات حلقة المسلسل

(السهم الايمن) انتقل للحلقة التالية
(السهم الايسر) انتقل للحلقة السابقة

على كافة صفحات الصور

a افتح صفحة اضافة الصورة

على كافة صفحات التعديل

t افتح محدد الترجمة
ctrl+ s ارسال النموذج

على صفحات المناقشة

n انشى نقاش جديد
w تبديل حالة المتابعة
p تبديل عام / خاص
c تبديل اغلاق / فتح
a افتح الانشطة
r رد على النقاش
l انتقل لأخر رد
ctrl+ enter أرسل رسالتك
(السهم الايمن) الصفحة التالية
(السهم الايسر) الصفحة السابقة

الاعدادات

هل تريد تقييم او اضافة هذا العنصر للقائمة؟

تسجيل الدخول