Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-20227

JsonResult should return content-type application/json

    XMLWordPrintable

Details

    • We collect Confluence feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      JsonResult returns a response with a content-type of text/javascript (was previously application/javascript) but according to the IETF JSON specification it should be "application/json".

      This content-type is what jQuery treats as JSON if a dataType isn't specified - text/javascript is treated as JavaScript code that will successfully run when embedded in a <script> tag. Passing a JSON into a <script> causes errors in some browsers (i.e. IE).

      See http://api.jquery.com/jQuery.ajax for jQuery's description of the dataType option - the default is "Intelligent Guess".

      Attachments

        Issue Links

          Activity

            People

              dtaylor David Taylor (Inactive)
              dtaylor David Taylor (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: