ICEpush
  1. ICEpush
  2. PUSH-317

Use request parameters for ICEpush

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.BETA
    • Fix Version/s: 4.0
    • Component/s: JavaScript Client
    • Labels:
      None
    • Environment:
      ICEpush, nginx

      Description

      ICEpush makes use of a number of HTTP headers. These values should be passed as parameters in the body of the HTTP request:

      ice.push.heartbeatTimestamp: 1401307088848
      ice.notifyBack: apns:f7353
      ice.push.browser: 1hvr1j5ar
      ice.push.sequence: 130
      ice.parkids: true
      ice.push.window: fe4f7

      (In some cases these are passed as body parameters, but the use of headers should be avoided.)

        Activity

        Ted Goddard created issue -
        Ted Goddard made changes -
        Field Original Value New Value
        Assignee Mircea Toma [ mircea.toma ]
        Ted Goddard made changes -
        Workaround Description Use

            proxy_pass_request_headers on;

        http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass_request_headers

        http://stackoverflow.com/questions/19751313/forward-request-headers-from-nginx-proxy-server

        Example configuration for nginx:

        location / {
            proxy_pass http://mysite.com;
            proxy_set_header Host http://mysite.com;
            proxy_set_header HTTP_Country-Code $geoip_country_code;
            proxy_pass_request_headers on;
        }
        Workaround Exists Yes [ 10007 ]
        Ted Goddard made changes -
        Fix Version/s 4.0.BETA [ 10971 ]
        Ted Goddard made changes -
        Workaround Description Use

            proxy_pass_request_headers on;

        http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass_request_headers

        http://stackoverflow.com/questions/19751313/forward-request-headers-from-nginx-proxy-server

        Example configuration for nginx:

        location / {
            proxy_pass http://mysite.com;
            proxy_set_header Host http://mysite.com;
            proxy_set_header HTTP_Country-Code $geoip_country_code;
            proxy_pass_request_headers on;
        }
        Use in the http section:

            ignore_invalid_headers off;

        http://wiki.nginx.org/HttpCoreModule#ignore_invalid_headers

            proxy_pass_request_headers on;

        http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass_request_headers

        http://stackoverflow.com/questions/19751313/forward-request-headers-from-nginx-proxy-server

        Example configuration for nginx:

        location / {
            proxy_pass http://mysite.com;
            proxy_set_header Host http://mysite.com;
            proxy_set_header HTTP_Country-Code $geoip_country_code;
            proxy_pass_request_headers on;
        }
        Ken Fyten made changes -
        Fix Version/s 4.0 [ 11383 ]
        Fix Version/s 4.0.BETA [ 10971 ]
        Mircea Toma made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: