diff --git a/xep-0124.xml b/xep-0124.xml index c48f087f..86cbc6a5 100644 --- a/xep-0124.xml +++ b/xep-0124.xml @@ -3,15 +3,6 @@ %ents; - - -XMPP Over BOSH XEP-0206: XMPP Over BOSH <http://www.xmpp.org/extensions/xep-0206.html>." > -BOAH XEP-0214: Bidirectional-streams Over Asynchronous HTTP (BOAH) <http://www.xmpp.org/extensions/xep-0214.html>." > -ECMAScript (JavaScript) Standard ECMA-262: ECMAScript Language Specification 3rd edition <http://www.ecma-international.org/publications/standards/Ecma-262.htm>." > -RFC 4627 RFC 4627: The application/json Media Type for JavaScript Object Notation (JSON) <http://tools.ietf.org/html/rfc4627>." > - - - ]> @@ -934,7 +925,7 @@ Content-Length: 68

The cross domain security restrictions of some runtime environments permit clients to access pure XML text only if it was received from a specific server (e.g., the hostname a Web client was downloaded from). Astonishingly the same environments typically permit clients to receive and execute scripts from any server! This security hole is unlikely to be closed by browser vendors since it facilitates online advertising. The Security Considerations section below describes the significant risks of deploying Script Syntax.

-

To enable domain-restricted clients to use BOSH with any connection manager, this section proposes an optional alternative to the standard "BOSH Pure Syntax" seen in the other sections of this document. The "BOSH Script Syntax" defined here essentially inserts each <body/> element sent by the client into an HTTP GET header instead of into the body of a POST request. Each <body/> element sent by the connection manager is wrapped inside an &ECMAScript; string and function call. No changes to the <body/> element or to any other aspects of the protocol are required.

+

To enable domain-restricted clients to use BOSH with any connection manager, this section proposes an optional alternative to the standard "BOSH Pure Syntax" seen in the other sections of this document. The "BOSH Script Syntax" defined here essentially inserts each <body/> element sent by the client into an HTTP GET header instead of into the body of a POST request. Each <body/> element sent by the connection manager is wrapped inside an &ecma262; string and function call. No changes to the <body/> element or to any other aspects of the protocol are required.

If, and only if, a client is unable to use the Pure Syntax, then it MAY send a session request to a BOSH connection manager using Script Syntax instead. If the connection manager supports Script Syntax then it MUST send its Session Creation Response using Script Syntax, and all subsequent client requests and connection manager responses within the session MUST be sent using Script Syntax. If the connection manager does not support the "BOSH Script" syntax then it SHOULD return either an 'item-not-found' terminal binding error (in Script Syntax) or an HTTP 404 (Not Found) error in response to the client's session request:

Note: The line break in the body of the HTTP response in the following example is included only to improve readability. In practice there MUST be no line breaks.