Setting MIME Type in CFSCRIPT

This is very helpful for sending JSON to the browser, especially in CF7.

getPageContext().getResponse().getResponse().setContentType(myMime);

Leave a Reply

Your email address will not be published. Required fields are marked *