Endpoint https://volismk2pwk.site.je/api/data menampilkan JSON di browser, tapi aplikasi Android native menerima HTTP 403 dengan halaman HTML. Apakah ada cara mengizinkan akses API langsung tanpa JavaScript challenge?
Welcome to the InfinityFree community forum! Good to have you here.
Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
Solving an issue is a joint effort. Try the suggestions you get and report back what happened.
Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look.
No, there isn’t a way to allow direct API access on free hosting. The JavaScript challenge is the security system that covers every free hosting account, and it can’t be turned off. That includes your volismk2pwk.site.je subdomain.
The system only lets through visitors that can run JavaScript and keep a cookie. A browser does that without you noticing, which is why you see the JSON there. A native Android app can’t, so it gets an HTML page instead of your JSON. That page loads /aes.js and sets a __test cookie. The article lists Android and iOS apps and REST APIs among the things that can’t connect. It also says the check can’t be excluded for one path, file type, user agent or IP address.
The article names 403 Forbidden as the most common error for blocked requests. You can check this on your side. If the HTML your app receives mentions aes.js, the request was stopped by the security system and never reached your code.
The article describes this and the options in full:
It says that if your app needs this kind of access, you’d need to move to premium hosting, which protects sites with less restrictive methods that allow apps and APIs.