-
Type:
Bug
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: 5.1
-
Fix Version/s: None
-
Component/s: CMIS
-
Labels:None
-
Bug Priority:
If you make a jsonp (callback) request to the 1.1 browser binding then it returns the incorrect MIME type - should be application/javascript but is application/json.
This will cause the request to fail in Chrome with the console message "Refused to execute script from 'http://localhost:8080/share/proxy/alfresco-api/default/public/cmis/versio…finitions=true&callback=dojo_request_script_callbacks.dojo_request_script0' because its MIME type ('application/json') is not executable, and strict MIME type checking is enabled."
(Note that calling the URL directly from the browser will show the page but if called via javascript the request will fail)
Response headers:
Cache-Control:private, max-age=0
Content-Type:application/json;charset=UTF-8
Date:Fri, 27 May 2016 13:31:44 GMT
Server:Apache-Coyote/1.1
Transfer-Encoding:chunked
X-Content-Type-Options:nosniff
X-Frame-Options:SAMEORIGIN
X-XSS-Protection:1; mode=block