reenable csrf
This commit is contained in:
parent
f47f63d029
commit
7d0c3d4659
@ -512,13 +512,6 @@ instance Yesod UniWorX where
|
|||||||
$logDebugS "normalizeRouteMiddleware" [st|Redirecting to #{tshow route'}|]
|
$logDebugS "normalizeRouteMiddleware" [st|Redirecting to #{tshow route'}|]
|
||||||
redirectWith movedPermanently301 route'
|
redirectWith movedPermanently301 route'
|
||||||
|
|
||||||
-- The following exception permits drive-by login via LDAP plugin. FIXME: Blocked by #17
|
|
||||||
isWriteRequest (AuthR (PluginR "LDAP" _)) = return False
|
|
||||||
isWriteRequest _ = do
|
|
||||||
wai <- waiRequest
|
|
||||||
return $ W.requestMethod wai `notElem`
|
|
||||||
["GET", "HEAD", "OPTIONS", "TRACE"]
|
|
||||||
|
|
||||||
defaultLayout widget = do
|
defaultLayout widget = do
|
||||||
master <- getYesod
|
master <- getYesod
|
||||||
mmsgs <- getMessages
|
mmsgs <- getMessages
|
||||||
|
|||||||
Reference in New Issue
Block a user