0

When doing $.post('actions.php',{ content: 'xxxxxxxxxxxx' }, function(data){});

It works i get 200 OK.

But when doing:

$.post('actions.php',{ content: escape($('body').html()) }, function(data){});

I get 403, error FORBIDDEN.

Any idea why? It's on the same domain, so i'm not violating SOP.

Community
  • 1
  • 1
an_animal
  • 86
  • 6

2 Answers2

0

You may be experiencing a post limit overload.

Take a look at this post: PHP/Apache/AJAX - POST limit?

Community
  • 1
  • 1
Ricardo Souza
  • 16,030
  • 6
  • 37
  • 69
0

Post size may be an issue for this.

You can go through your server error logs and you can figure out the reason.

for error logs http://www.cyberciti.biz/faq/apache-logs/

Peeyush
  • 4,728
  • 16
  • 64
  • 92