You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cloudstack.apache.org by "Demetrius Tsitrelis (JIRA)" <ji...@apache.org> on 2014/03/20 22:33:44 UTC

[jira] [Created] (CLOUDSTACK-6263) MIME type for JSON responses should be application/json

Demetrius Tsitrelis created CLOUDSTACK-6263:
-----------------------------------------------

             Summary: MIME type for JSON responses should be application/json
                 Key: CLOUDSTACK-6263
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6263
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
    Affects Versions: 4.2.0
            Reporter: Demetrius Tsitrelis


According to RFC 7158, the official MIME media type for JSON is application/json.

In addition to conforming with the RFC, this might make it easier for some browsers to correctly apply the right context to avoid executing any embedded script (such as with cross-site scripting). See https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet#RULE_.233.1_-_HTML_escape_JSON_values_in_an_HTML_context_and_read_the_data_with_JSON.parse.



--
This message was sent by Atlassian JIRA
(v6.2#6252)