开发者

Liferay: Ajax request type changed POST to GET, how to switch back

开发者 https://www.devze.com 2023-03-26 20:59 出处:网络
I am facing this issue which started after we updated the JQuery version from 1.2.6 to 1.4.2, to accommodate some of the components we use.

I am facing this issue which started after we updated the JQuery version from 1.2.6 to 1.4.2, to accommodate some of the components we use. So, the issue here is that earlier the Ajax request for the Flag functionality on Blogs, Message Board portlets was POST and after this update it changed to GET.

Please help to us to understand what triggered this change from POST to GET and ho开发者_JS百科w to change is back to POST.

Thanks, Micheal


You can fix it by adding this code to some master js file. This will set this as the default across all jQuery ajax requests.

$.ajaxSetup({
    type: "POST"
});
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号