Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-2640

Wrong content-type for content.json [GHI#35971]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [X] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      account/ui

      Describe the bug

      Currently the content-type for content.json is application/octet-stream instead of application/json.
      This is caused by a missing entry for the .json file extension in org.keycloak.common.util.MimeTypeUtil#map

      <img width="701" alt="image" src="https://github.com/user-attachments/assets/8eeb6865-8ad2-4b08-ba22-379469f83c9e" />

      Version

      26.0.7

      Regression

      [ ] The issue is a regression

      Expected behavior

      The content type should be application/json

      Actual behavior

      The content type should be application/octet-stream

      How to Reproduce?

      Open account console and look in the network tab of your browser dev-tools for content.json.

      Anything else?

      No response

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak Core IAM
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: