Details

      Description

      Normally to do cross-domain http bind connections, proxies or Flash are needed to get around the same origin policy for browser ajax requests. The W3C has put forward a recommendation called Cross-Origin Resource Sharing (http://www.w3.org/TR/cors/), which allows web services to authorize cross-domain requests from browsers. Firefox 3.5+, Safari, and Chrome all support this standard.

      This patch adds support for OPTIONS requests, which are needed for CORS pre-flighting, and adds several CORS HTTP headers to http bind requests.

      It allows browsers to make direct, cross-domain requests to mod_http_bind without the need for flash or proxies. This makes it much easier to get started with XMPP web development.

        Expenses

          Activity

          Hide
          metajack jack Moffitt added a comment -

          Add CORS support to http bind.

          Show
          metajack jack Moffitt added a comment - Add CORS support to http bind.
          Hide
          mremond@process-one.net Mickaël Rémond added a comment -

          Thank you. This is very useful patch.

          Show
          mremond@process-one.net Mickaël Rémond added a comment - Thank you. This is very useful patch.
          Hide
          mremond@process-one.net Mickaël Rémond added a comment -

          I think we really need to add this support in ejabberd 2.1.3.
          This is a really important feature.

          Show
          mremond@process-one.net Mickaël Rémond added a comment - I think we really need to add this support in ejabberd 2.1.3. This is a really important feature.
          Hide
          badlop Badlop added a comment -

          Patch committed to ejabberd Git 2.1.x and master.

          Show
          badlop Badlop added a comment - Patch committed to ejabberd Git 2.1.x and master.

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development