mirror of
https://git.mills.io/saltyim/saltyim.git
synced 2024-06-30 18:51:03 +00:00
Excempt /inbox/* from CSRF
This commit is contained in:
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{
|
||||
|
Loading…
Reference in New Issue
Block a user