wagtail-deprecated / wagtaildemo

Old example site implemented with Wagtail. Please see https://github.com/wagtail/bakerydemo for the current demo site
http://wagtail.io
BSD 3-Clause "New" or "Revised" License
285 stars 144 forks source link

CSRF token missing or incorrect error if submit form page on preview page #75

Closed pahaz closed 9 years ago

pahaz commented 9 years ago

Hi! I deploy wagtaildemo on heroku and then create new form page with two fields, then click preview button. On preview page, I fill form fields and submit the form. After that I will receive Forbidden (403) CSRF token missing or incorrect error page.

gasman commented 9 years ago

Hi @pahaz, Form pages are not intended to be functional when previewing - they need to exist as real published pages before they can accept submissions.