Closed yamadapc closed 8 years ago
The Handler.Comment specs fail, because of a call to addTokenFromCookie, but no defaultCsrfMiddleware on Foundation.hs [1]
Handler.Comment
addTokenFromCookie
defaultCsrfMiddleware
Foundation.hs
This removes all calls to addTokenFromCookie from the yesod templates' tests.
This closes commercialhaskell/stack-templates#71 and is related to PR commercialhaskell/stack-templates#72.
[1] - https://github.com/commercialhaskell/stack-templates/blob/master/yesod-postgres.hsfiles#L289
Also could be fixed with as mentioned in commercialhaskell/stack-templates#71:
- yesodMiddleware = defaultYesodMiddleware + yesodMiddleware = defaultYesodMiddleware . defaultCsrfMiddleware
This is great, thanks for making this fix @yamadapc!
The
Handler.Comment
specs fail, because of a call toaddTokenFromCookie
, but nodefaultCsrfMiddleware
onFoundation.hs
[1]This removes all calls to
addTokenFromCookie
from the yesod templates' tests.This closes commercialhaskell/stack-templates#71 and is related to PR commercialhaskell/stack-templates#72.
[1] - https://github.com/commercialhaskell/stack-templates/blob/master/yesod-postgres.hsfiles#L289
Also could be fixed with as mentioned in commercialhaskell/stack-templates#71: