relax origin restrictions supposedly.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4848 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
e1269ddd35
commit
8883bf4603
1 changed files with 2 additions and 0 deletions
|
@ -1139,6 +1139,7 @@ void HTTPSV_GetMethod(cluster_t *cluster, oproxy_t *pend)
|
||||||
{
|
{
|
||||||
s = "HTTP/1.1 426 Upgrade Required\r\n"
|
s = "HTTP/1.1 426 Upgrade Required\r\n"
|
||||||
"Sec-WebSocket-Version: 13\r\n"
|
"Sec-WebSocket-Version: 13\r\n"
|
||||||
|
"Access-Control-Allow-Origin: *\r\n" //allow cross-origin requests. this means you can use any domain to play on any public server.
|
||||||
"\r\n";
|
"\r\n";
|
||||||
Net_ProxySend(cluster, pend, s, strlen(s));
|
Net_ProxySend(cluster, pend, s, strlen(s));
|
||||||
return;
|
return;
|
||||||
|
@ -1155,6 +1156,7 @@ void HTTPSV_GetMethod(cluster_t *cluster, oproxy_t *pend)
|
||||||
"HTTP/1.1 101 Switching Protocols\r\n"
|
"HTTP/1.1 101 Switching Protocols\r\n"
|
||||||
"Upgrade: websocket\r\n"
|
"Upgrade: websocket\r\n"
|
||||||
"Connection: Upgrade\r\n"
|
"Connection: Upgrade\r\n"
|
||||||
|
"Access-Control-Allow-Origin: *\r\n" //allow cross-origin requests. this means you can use any domain to play on any public server.
|
||||||
"Sec-WebSocket-Accept: %s\r\n"
|
"Sec-WebSocket-Accept: %s\r\n"
|
||||||
// "Sec-WebSocket-Protocol: FTEQTVWebSocket\r\n"
|
// "Sec-WebSocket-Protocol: FTEQTVWebSocket\r\n"
|
||||||
"\r\n", acceptkey);
|
"\r\n", acceptkey);
|
||||||
|
|
Loading…
Reference in a new issue