I am trying to send an image path to my server so that I can copy that image from facebook to my own server. But I am not able to send the image path. It gives me 403 Forbidden
error.
$.ajax({
url:'http://url.com/albums/copyFromFacebook',
data: { p : path , id : ids},
type : 'POST',
success:function(e)
{
alert(e);
}
});
The p
in the data
field should contain the path. Whenever I remove this parameter the ajax request works fine. But whenever I put this parameter I get a 403 Forbidden error.
A quick google search returns a few stackoverflow questions similar to yours
403 Forbidden on form submission
403 Forbidden When Posting HTML Tags
Error 403 triggered when posting URL's via form with PHP
With all of them suggesting ModSecurity as a possible culprit
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.