okkur / syna

Highly customizable open source theme for Hugo based static websites
https://syna.okkur.org/demo/
Apache License 2.0
252 stars 134 forks source link

Contact form gets 401 error #613

Closed ctflora closed 4 years ago

ctflora commented 5 years ago

Is this a BUG REPORT or FEATURE REQUEST?: bug (or user problem?)

What happened: After setting up the Contact fragment for use with Formspree, I'm getting a 401 error from Formspree that includes "Referrer Policy:no-referrer-when-downgrade". This is from my site that's hosted on Gitlab Pages, not just when served via localhost.

What you expected to happen: To not get the 401 error and for Formspree to process my request

How to reproduce it (as minimally and precisely as possible): I copied the contact.md from the example site (exampleSite/content/dev/blog/_index/content.md), modified it by commenting out the "post_url", putting my address in "email", setting "netlify" to false, and commenting out the [recaptcha] section.

Anything else we need to know?: I'm sure I'm missing something, I just can't figure out what. Any help is appreciated.

Environment:

ctflora commented 5 years ago

So it turns out that if I remove all of the data-validation, data-validation-regex, and data-validation-error-msg modifiers to the \<input> tags, Formspree works as expected. Is there any way to get the data validation checks working with Formspree?