I just made a new deploy of my page that somehow break the contact form on my page!
When I submit the form everything looks fine on the frontend!? I get redirected to my confirmation page as intended. However no form submission is registered in my verified/spam submissions?
I can’t seem to find any breaking changes in the code, however I did make some changes to the overall page setup that may have caused this!
I changed the headers on my page! My netlify.toml file was upgraded with this [[headers]] section:
[build] command = "gatsby build" publish = "public" base = "." functions = "./functions/autoReply/" [dev] command = "gatsby develop" [[headers]] for = "*" [headers.values] X-Frame-Options = "DENY" X-XSS-Protection = "1; mode=block" Referrer-Policy = "strict-origin-when-cross-origin" X-Content-Type-Options = "nosniff"
I had some issues with trailing slashes! My page is build to be used without trailing slashes, so Netlify’s default setup of adding a trailing slash was a problem, so I changed the settings for the page to no longer prettify URL’s under settings>Build & Deploy > Asset Optimization.
I have tried previewing one of the old deploys, and my contactform works from here! (my Netlify function also sends an auto reply - so I think the Function is running as intended).
Can you help me debug this issue?
My page is live now at https://larsejaas.com - thanks!