6
1
mirror of https://git.mills.io/saltyim/saltyim.git synced 2024-06-28 09:41:02 +00:00

Excempt /inbox/* from CSRF

This commit is contained in:
James Mills 2022-03-22 10:05:00 +10:00
parent 6b678240aa
commit ce5ffbd687

@ -238,6 +238,7 @@ func NewServer(bind string, options ...Option) (*Server, error) {
csrfHandler := nosurf.New(router)
csrfHandler.ExemptGlob("/api/v1/*")
csrfHandler.ExemptGlob("/inbox/*")
app.Route("/", &components.Hello{})
server := &Server{