Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

API usage with localhost and web server

A topic by numanjaved created Sep 25, 2023 Views: 326 Replies: 4
Viewing posts 1 to 3

Hello guys, I am right now making my own indie game website. 

I generated API keys from my user settings with source web, and when i try to access it in browser, it works fine with the my-games endpoint. 

but when i try to fetch it from my locally hosted website or even the online server, it gives network error. 

Is there an issue with the api key generated or am I missing something. 


Thanks 

Sorry guys, got my answer 

Admin(+2)

If you end up solving your own problem, it can be helpful to share you solution in the thread so that others who have a similar problem that come across this thread can be pointed in the right direction.

I was going to delete the topic as I solved my problem, but was keeping it for 1 2 days.

You replied in positive light so I wont delete it anymore. Thanks for that

(+1)

Actually my problem was on react interface, I tried fetching from the itch IO api on a react page, and it did not work what so ever. 
What i did was, I made a backend api on php laravel to fetch the data from itch io api 

and then i used that laravel api in my react app