Sunday, March 25, 2012

Sending data to the server

Hi, so I have a application that works offline (with localStorage),
and now I'm trying to get it to work in a server.

I'm having a problem sending the data to server, I'm using jquery:

$.ajax({

type: 'POST',
url: 'http://mysite.aa/logout/',
data: JSON.stringify( stuff ),
contentType: 'text/plain; charset=utf-8',
complete: function() { console.log('complete'); }
});

and I get a 403 error.

In chrome's console:

POST http://mysite.aa/logout/ 403 (FORBIDDEN)
XHR finished loading: "http://myserver.aa/logout/"

In server:
[25/Mar/2012 17:20:43] "POST /logout/ HTTP/1.1" 403 2282


Any ideas?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate