Login Register

ComboBox - Change mimetype text/json to text/json-comment-filtered

Hi All.

When i use the ComboBox in "remote" mode in my application dojo show the following warning: "please consider using a mimetype of text/json-comment-filtered to avoid potential security issues with JSON endpoints.".

I figure out that the issue is because the method dojo.widget.incrementalComboBoxDataProvider.startSearch is setting the mimetype of the data to "text/json" instead "text/json-comment-filtered".

There's other method that have this issue and it's dojo.widget.basicComboBoxDataProvider._getData.

I checked the code in the trunk and it seems that this issue still there, those methods still setting the mimetype to "text/json" instead "text/json-comment-filtered".

Cheers,
Carlos Chávez.