Commit Graph

3 Commits

Author SHA1 Message Date
Victor Vrantchan
cf94d41d9b Add validation error handling to framework 2020-07-25 20:28:46 -04:00
Victor Vrantchan
a8dc606beb Add CSRF middleware to all pages
The frontend server now runs a CSRF middleware on all paths except
/assets/. To enable CSRF the -csrf_key flag must be set. Instead of
enforcing the flag is set, I opted to log that CSRF is disabled. Not
running CSRF means I can test with curl.

In the future I might enforce that the flag must be set in release builds.
2020-07-22 23:22:03 -04:00
Victor Vrantchan
c71958384e build a simple web framework. (#691)
Added the basics for HTML templates, serving assets and so on.
2020-07-17 12:41:33 -04:00