|
|
#1 |
|
Join Date: May 2012
Reputation: 0
Posts: 9
|
Steam allows us to request Account in XML-format, e.g. http://steamcommunity.com/id/gabelogannewell/?xml=1
This allows us to get the current online and VAC-Status and much more. But currently it is impossible to request this data on client-side (e.g. via AJAX) because of the Same origin policy, which is why many use Proxies, e.g. via PHP. This is unnecessary these days und just overhead. ![]() Modern browsers support Cross-Origin Resource Sharing. Steam needs to add just one HTTP-Header to enable CORS. https://hacks.mozilla.org/2009/07/cross-site-xmlhttprequest-with-cors/ |
|
|
|
|
|
#2 |
![]() Join Date: May 2009
Reputation: 53
Posts: 224
|
Take a look at an earlier thread involving this same topic. http://forums.steampowered.com/forum...3#post30322343
Do you still feel adding CORS support is a more viable solution than working around the issue? |
|
|
|
|
|
#3 |
|
Join Date: May 2012
Reputation: 0
Posts: 9
|
|
|
|
|
|
|
#4 |
![]() Join Date: May 2009
Reputation: 53
Posts: 224
|
But that load and delay is usually unnoticeably small. Either you get the information directly and we consider the time required to be the delay between when your program requests the info and it gets a response, or you get the information through another local means and we consider the time required to be the delay between when the proxy program requests the info and it gets a response plus the time it takes for the proxy program to relay that to the original program. The difference between the two scenarios is a matter of miliseconds, dont you think?
Unless there is more complicating the second case than has been made evident, I would suggest you take that extra-milisecond hit.
|
|
|
|
|
|
#5 | |
|
Join Date: May 2012
Reputation: 0
Posts: 9
|
Nope. I did happen more than once, that steam servers were damn slow. Also it would completely remove the benefit of geolocated server since i can't control which server handles my request. I guess it's a server somewhere at the border of the world.
Quote:
I really don't want to run an extra Server to proxy requests to the steam community. For small clan-pages or whatever a proxy-"solution" (no it isn't) may be OK but for bigger websites this is not an option. Whats the problem of adding one Response Header
|
|
|
|
|
|
|
#6 | ||
![]() Join Date: May 2009
Reputation: 53
Posts: 224
|
Quote:
Quote:
I will admit that it's hackish to take the approach I've proposed, but realistically, you arent likely to see Valve add anything in the way of what you're asking, at least not soon enough to matter. And in my opinion, that's rightfully so, since adding more layers almost always adds more problems. Security vulnerabilities and privacy issues have the potential to manifest with the addition of CORS support. It's a lot more complicated than just tacking a few extra words onto outgoing data. Last edited by root: 05-23-2012 at 02:25 PM. |
||
|
|
|
|
|
#7 | ||||
|
Join Date: May 2012
Reputation: 0
Posts: 9
|
Quote:
Quote:
Quote:
![]() Quote:
![]() Adding one more header is just 1 line of code. |
||||
|
|
|
|
|
#8 |
![]() Join Date: May 2009
Reputation: 53
Posts: 224
|
Sorry, but not really. Are you trying to say your application will be serving to many clients from many different servers you operate? I was under the impression this was a humble project that wouldnt see more than 100-200 clients at a time, which is totally possible from a single server you operate, running the single application and communication backend program, talking to the server from Valve. In such a case, you need no more than one server, operating two processes locally, to itself.
It isnt, though. You are asking Valve to consider which of their resources should be exposed to external scripting. They would have to consider how much privacy the exposed resource could breach, as well as the security implications of allowing potentially malicious scripts to operate on these resources. It requires a lot more planning than just dropping a line into an Apache config and walking away. |
|
|
|
|
|
#9 | ||
|
Join Date: May 2012
Reputation: 0
Posts: 9
|
Quote:
For production use this is not an option today, since modern browsers deny the request without CORS. But you could still use proxies, as mentioned more than enough times. In fact there is not a single new resource which would be exposed. Quote:
they could read them, nothing more and nothing less. Already possible.That was meant as an example for the doubled load ![]() Proxying is still no solution! And no, there is no need for further discussion. |
||
|
|
|
|
|
#10 |
![]() Join Date: May 2009
Reputation: 53
Posts: 224
|
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|