Re: CSRF Verification fails in production for Cross Domain POST request

2019-04-25 Thread Gil Obradors
When I have problems with csrf and POST, I usually put a print(request.POST) into a view function, to see what the framework recives from client help you? Missatge de suresh del dia dj., 25 d’abr. 2019 a les 8:20: > The HTTP_X_CSRFTOKEN header does not match what is inside the csrftoken > cook

CSRF Verification fails in production for Cross Domain POST request

2019-04-24 Thread suresh
The HTTP_X_CSRFTOKEN header does not match what is inside the csrftoken cookie. How can I examine the cookie? Set-Cookie is not displayed in the Response header for Cross Domain requests. I have already followed instructions found in: https://stackoverflow.com/questions/39254562/csrf-with-dj

Re: Cross Domain POST Request

2010-10-22 Thread Masklinn
On 2010-10-22, at 11:53 , Viet Nguyen wrote: > Hi there, I am quite new to Django and encounters a problem which > takes me a lot of time to figure out. As I known, Django provides some > functionality to prevent cross domain AJAX requests. Last time I checked, Django didn't integrate any ajaxy fac

Cross Domain POST Request

2010-10-22 Thread Viet Nguyen
Hi there, I am quite new to Django and encounters a problem which takes me a lot of time to figure out. As I known, Django provides some functionality to prevent cross domain AJAX requests. However, using jQuery you can specify a callback (JSONP) and could talk and get data back from the server. Fo