I have a form in http page say http://example.com and form is like .I m using django 1.3.I enabled csrf middleware and put csrf token tag inside the form.When i try to submit the form i m getting the below error.
Referer checking failed - http://example.com/ does not match https://example.com/.
Any idea on how to overcome this problem?
asked Sep 15, 2012 at 6:00
shiva
2,7704 gold badges24 silver badges39 bronze badges
-
can you post your form template.Rohan– Rohan2012年09月15日 07:04:27 +00:00Commented Sep 15, 2012 at 7:04
1 Answer 1
There is difference between http and https. Are you trying to POST on HTTPS while GET is from HTTP?
If you have HTTPS setup may be you can look here for validating your configuration.
answered Sep 15, 2012 at 6:06
Rohan
53.5k12 gold badges95 silver badges89 bronze badges
Sign up to request clarification or add additional context in comments.
1 Comment
shiva
Yes get is from http and i m trying to post in https
default