Products | Versions |
---|---|
TIBCO JasperReports Server | 8.0.1 and below |
TIBCO JasperReports IO - At-Scale Edition | - |
TIBCO JasperReports Server for ActiveMatrix BPM | 7.9.2 and below |
You can prevent browser rendering of the rest-api responses in html & xml format by restricting content type headers.
To configure this restriction in:
- open .../jasperserver-pro/WEB-INF/applicationContext-rest-services.xml
- find <util:map id="contentTypeMapping">
- change the following entries:
<entry key="html" value="text/html"/>
<entry key="jrxml" value="application/xml"/>
<entry key="jrtx" value="application/xml"/>
<entry key="xml" value="application/xml"/>
<entry key="accessGrantSchema" value="application/xml"/>
<entry key="olapMondrianSchema" value="application/xml"/>
to:
<entry key="html" value="application/html"/>
<entry key="jrxml" value="application/repository.file+jrxml"/>
<entry key="jrtx" value="application/repository.file+jrtx"/>
<entry key="xml" value="application/repository.file+xml"/>
<entry key="accessGrantSchema" value="application/repository.file+accessGrantSchema"/>
<entry key="olapMondrianSchema" value="application/repository.file+olapMondrianSchema"/>
To configure this restriction in:
- open .../jasperserver/WEB-INF/applicationContext-rest-services.xml
- find <util:map id="contentTypeMapping">
- change the following entries:
<entry key="html" value="text/html"/>
<entry key="jrxml" value="application/xml"/>
<entry key="jrtx" value="application/xml"/>
<entry key="xml" value="application/xml"/>
<entry key="accessGrantSchema" value="application/xml"/>
<entry key="olapMondrianSchema" value="application/xml"/>
to:
<entry key="html" value="application/html"/>
<entry key="jrxml" value="application/repository.file+jrxml"/>
<entry key="jrtx" value="application/repository.file+jrtx"/>
<entry key="xml" value="application/repository.file+xml"/>
<entry key="accessGrantSchema" value="application/repository.file+accessGrantSchema"/>
<entry key="olapMondrianSchema" value="application/repository.file+olapMondrianSchema"/>