jomsocial

getting 403 forbidden in ajax

谁都会走 提交于 2019-12-11 11:01:49
问题 I am getting a very strange 403 forbidden error in an ajax call. The data is being sent in a post javascript object of multiple javascript variables after applying JSON.stringify on the object. One variable in the object is causing problems, which is the text/html fetched from the editor. 403 forbidden is thrown when there are two 'p' tags in the text editor. 'p' or any other tag. When there is only 1 tag in the editor, the ajax call successfully completes. I thought there is some kind of