Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-11752

Proxy filter is not passing any headers and it should

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • 13.1.0
    • None
    • None

    Description

      Currently when starting the hap and the wpm dev server the flag icons are not appearing in Chrome (72).
      This is probably because headers like the content type are missing.
      If you hit the webpack dev server directly you can see that more headers are present and the flag icons render just fine.

      Updated description ( Thu Feb 28 14:47:32 CET 2019 ):

      Current situation

      webpack response
       jq '.log.entries[0].response.headers' us.svg.npm.har
      
      [
        {
          "name": "X-Powered-By",
          "value": "Express"
        },
        {
          "name": "Access-Control-Allow-Origin",
          "value": "*"
        },
        {
          "name": "Accept-Ranges",
          "value": "bytes"
        },
        {
          "name": "Content-Type",
          "value": "image/svg+xml; charset=UTF-8"
        },
        {
          "name": "Content-Length",
          "value": "3921"
        },
        {
          "name": "ETag",
          "value": "W/\"f51-yz9UyR7at80CprACyQs/MLOY2lg\""
        },
        {
          "name": "Date",
          "value": "Mon, 25 Feb 2019 15:42:28 GMT"
        },
        {
          "name": "Connection",
          "value": "keep-alive"
        }
      ]
      
      proxy response
       jq '.log.entries[0].response.headers' us.svg.proxy.har
      [
        {
          "name": "Content-Length",
          "value": "3921"
        },
        {
          "name": "Date",
          "value": "Mon, 25 Feb 2019 15:40:48 GMT"
        }
      ]
      

      Desired situation

      proxy response
       jq '.log.entries[0].response.headers' us.svg.proxy.after.har
      
      [
        {
          "name": "X-Powered-By",
          "value": "Express"
        },
        {
          "name": "Access-Control-Allow-Origin",
          "value": "*"
        },
        {
          "name": "Accept-Ranges",
          "value": "bytes"
        },
        {
          "name": "Content-Type",
          "value": "image/svg+xml; charset=UTF-8"
        },
        {
          "name": "Content-Length",
          "value": "3921"
        },
        {
          "name": "ETag",
          "value": "W/\"f51-yz9UyR7at80CprACyQs/MLOY2lg\""
        },
        {
          "name": "Date",
          "value": "Mon, 25 Feb 2019 15:42:28 GMT"
        },
        {
          "name": "Connection",
          "value": "keep-alive"
        }
      ]
      
      

      Attachments

        1. us.svg.npm.har
          28 kB
          Michiel Rop
        2. us.svg.proxy.after.har
          12 kB
          Michiel Rop
        3. us.svg.proxy.har
          12 kB
          Michiel Rop

        Activity

          People

            Unassigned Unassigned
            jdegooijer Joeri de Gooijer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: