Skip to content

Commit

Permalink
issues/447: Disable reload protector middleware (#448)
Browse files Browse the repository at this point in the history
That middleware is not working as intended. This PR mitigates until we can implement a proper fix.

- Updates: #447
- https://en.wikipedia.org/wiki/Post/Redirect/Get
  • Loading branch information
komuw authored Jun 6, 2024
1 parent 0760665 commit 94b4f3f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,17 @@ func allDefaultMiddlewares(
securityHeaders(
cors(
csrf(
reloadProtector(
session(
wrappedHandler,
string(secretKey),
domain,
sessionCookieDuration,
SessionAntiReplyFunc,
),
// TODO: re-enable after https://github.com/komuw/ong/issues/447 is fixed.
// reloadProtector(
session(
wrappedHandler,
string(secretKey),
domain,
sessionCookieDuration,
SessionAntiReplyFunc,
),
// domain,
// ),
string(secretKey),
domain,
csrfTokenDuration,
Expand Down

0 comments on commit 94b4f3f

Please sign in to comment.