Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-10360

Whitelist User-Agent header in CORS Preflight requests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2020-04-13
    • None
    • Web service
    • None

      According to the fetch spec, there is a CORS-preflight request in order to verify if the server understand the CORS protocol.

      The web service documentation recommends providing a meaningful User-Agent string, but User-Agent is not a safelisted CORS header, so spec-adhering tools will not be able to perform CORS requests correctly. Currently, Firefox 69+ is one having issues.

      Firefox issue related to updates in the fetch spec

      Relevant source on MBS: https://github.com/metabrainz/musicbrainz-server/blob/master/lib/MusicBrainz/Server/Controller/Role/CORS.pm#L22

       

            bitmap Michael Wiencek
            fspy Felipe Spychalski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2020-04-13