Laravel Api returns html instead of json

my website runs api that is supposed to reponse json but no matter what headers or methods i try i always get this html code




This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support


why is that happening the api worked perfectly on my local environment

https://infinityfree.net/support/javascript-error-using-api-or-mobile-android-app/

3 Likes

________
thank you very much for the explanation but is it real that i can’t disable it at all ?

No you cannot, this isn’t a hosting to host APIs.

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.