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)

Reply via email to