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

Cannot load CSS files from webjars

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.2-milestone-1
    • 6.0
    • Webjar
    • None
    • Unit
    • Trivial
    • N/A
    • N/A

    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

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

              Dates

                Created:
                Updated:
                Resolved: