mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
csrf protection
This commit is contained in:
parent
e673acb5c2
commit
c3b7f183ae
2 changed files with 2 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ func (ps PdfService) BuildInvoice(b *booking.Booking, hc *config.Host) error {
|
|||
|
||||
payload, err := json.Marshal(data)
|
||||
if err != nil {
|
||||
log.Warnf("Error marshalling JSON:", err)
|
||||
log.Warnf("Error marshalling JSON: %s", err)
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -150,6 +150,7 @@ func NewRouter(fs embed.FS, debug bool) *echo.Echo {
|
|||
e.Use(middleware.Recover())
|
||||
e.Use(middleware.Secure())
|
||||
e.Use(middleware.Gzip())
|
||||
e.Use(middleware.CSRF())
|
||||
e.Use(sentryecho.New(sentryecho.Options{}))
|
||||
e.Use(SentryTracingMiddleware)
|
||||
// static assets
|
||||
|
|
|
|||
Loading…
Reference in a new issue