Whitelist User-Agent header in CORS Preflight requests

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 2020-04-13
    • Affects Version/s: None
    • Component/s: 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

       

            Assignee:
            Michael Wiencek
            Reporter:
            Felipe Spychalski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2020-04-13