Skip to content

kbexample: add http.CrossOriginProtection to default middleware #17

@dankinder

Description

@dankinder

https://pkg.go.dev/net/http#CrossOriginProtection is available in Go 1.25 for CSRF protection. It should be a standard middleware we add in kbexample.

We'll need to use SITE_URL to call AddTrustedOrigin to make it work in production.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions