This commit is contained in:
Filip Gralinski 2020-11-21 18:13:58 +01:00
parent dd5338c251
commit a0577ba249
2 changed files with 3 additions and 1 deletions

View File

@ -28,6 +28,7 @@ import Network.Wai.Middleware.RequestLogger (Destination (Logger),
IPAddrSource (..),
OutputFormat (..), destination,
mkRequestLogger, outputFormat)
import Network.Wai.Middleware.Cors
import System.Log.FastLogger (defaultBufSize, newStdoutLoggerSet,
toLogStr)
@ -145,7 +146,7 @@ makeApplication foundation = do
-- Create the WAI application and apply middlewares
appPlain <- toWaiAppPlain foundation
return $ logWare $ defaultMiddlewaresNoLogging appPlain
return $ logWare $ defaultMiddlewaresNoLogging $ simpleCors appPlain
makeLogWare :: App -> IO Middleware
makeLogWare foundation =

View File

@ -151,6 +151,7 @@ library
, megaparsec
, Glob
, req
, wai-cors
executable gonito
if flag(library-only)