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

Whitelist User-Agent header in CORS Preflight requests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Web service
    • Labels:
      None

      Description

      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

       

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:

                Packages

                Version Package