I have a web application running on a Tomcat 7 server, that’s run fed entirely with ajax requests, a one page application if you will.

In this application I’m sending “json” and “jsonp” data to and from the server, and now that I’ve recently installed the Apache Shiro framework, I don’t seem to be getting my “jsonp” input on the server.

I’ve tried setting the Content-Type in the jQuery Ajax using the beforeSend method to set headers, and this works wonders the “application/json”, but what I can’t figure out is how to get the Shiro Filter to allow “jsonp”.

I can’t seem to find any documentation that specifies whether or not “jsonp” is accepted through the Shiro Filter, so any help would be greatly appreciated.

Read more here: Apache Shiro: How do I get JSONP data through the filter?


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: