Все обсуждения > Форумы Steam > Help and Tips > Подробности темы
Тема закрыта
How can I get users Info by id through Steam Web Api?
Hi! Working around steam web api, and trying to fetch all neccessary data by user id.

Using GET request:
https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=[APIKEY]&format=json&steamids=76561198036370701

but it's gives an error : "No 'Access-Control-Allow-Origin' header is present on the requested resource."

But if I open this ling in browser it's works fine:
https://api.steampowered.com/ISteamUser/GetPlayerSummaries/v2/?key=[APIKEY]&format=json&steamids=76561198036370701

Anybody knows what's wrong?
< >
Сообщения 14 из 4
Nice! Resolved it, I should make a requests from server, you can't make them from client side!
This is really old, but it's a bad sign that you are storing your Steam Web API key on the client. You can do a lot of things with it, and it is dangerous.
Автор сообщения: ~ red ~
This is really old, but it's a bad sign that you are storing your Steam Web API key on the client. You can do a lot of things with it, and it is dangerous.
Their last post was almost 2 years ago and this one wasn't far behind that....
This thread was quite old before the recent post, so we're locking it to prevent confusion.
< >
Сообщения 14 из 4
Показывать на странице: 1530 50

Все обсуждения > Форумы Steam > Help and Tips > Подробности темы
Дата создания: 1 фев. 2018 г. в 7:07
Сообщений: 4