Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10674

Cannot load CSS files from webjars

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0
    • Fix Version/s: 6.2-milestone-1
    • Component/s: Webjar
    • Labels:
      None
    • Tests:
      Unit
    • Difficulty:
      Trivial
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      This happens because the content type is not set properly when retrieving a resource from a webjar. It works for JavaScript because browsers are more permissive, setting Accept: */* on the request, while in the case of CSS, they use Accept: text/css,*/*;q=0.1. The webjars actions always responds with text/html.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mflorea Marius Dumitru Florea
              Reporter:
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: