Replies: 1 comment 5 replies
-
CORS is something that is supported in I don't know if the tower-http CORS support is up to what the blogpost describes as "modern", but IMO any potential improvement is better aimed at |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In a recent blogpost @FiloSottile discussed background research that went into a feature of the Go standard library: a modern CSRF protection middleware.
axum can be considered as one of the equivalents of (the server part) of
net/http
and might want to consider porting this feature. This boils down to (quoting from the blog):same-origin
ornone
, allow the request, otherwise rejectSeems simple enough to implement. Giving the thoroughness of the background research and subsequent inclusion of the solution into the Go standard this seems like a worthy addition to axum.
Beta Was this translation helpful? Give feedback.
All reactions